summaryrefslogtreecommitdiff
path: root/contrib/dd
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/dd')
-rw-r--r--contrib/dd6
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/dd b/contrib/dd
index 3c1d3c37..e236f85a 100644
--- a/contrib/dd
+++ b/contrib/dd
@@ -6,9 +6,9 @@ _dd()
local cur
COMPREPLY=()
- cur=`_get_cword =`
+ _get_comp_words_by_ref -n = cur
- case "$cur" in
+ case $cur in
if=*|of=*)
cur=${cur#*=}
_filedir
@@ -28,7 +28,7 @@ _dd()
$( compgen -W 'bs cbs conv count ibs if obs of seek skip'\
-S '=' -- "$cur" ) )
} &&
-complete -F _dd $nospace $filenames dd
+complete -F _dd -o nospace -o filenames dd
# Local variables:
# mode: shell-script