summaryrefslogtreecommitdiff
path: root/completions/wvdial
diff options
context:
space:
mode:
Diffstat (limited to 'completions/wvdial')
-rw-r--r--completions/wvdial6
1 files changed, 3 insertions, 3 deletions
diff --git a/completions/wvdial b/completions/wvdial
index da2dbfb3..e456f1b1 100644
--- a/completions/wvdial
+++ b/completions/wvdial
@@ -8,7 +8,7 @@ _wvdial()
case $prev in
--config)
_filedir
- return 0
+ return
;;
esac
@@ -33,7 +33,7 @@ _wvdial()
done
# parse config files for sections and
# remove default section
- COMPREPLY=( $( sed -ne "s|^\[Dialer \($cur.*\)\]$|\1|p" $config \
+ COMPREPLY=( $( command sed -ne "s|^\[Dialer \($cur.*\)\]$|\1|p" $config \
2>/dev/null | command grep -v '^Defaults$'))
# escape spaces
COMPREPLY=${COMPREPLY// /\\ }
@@ -43,4 +43,4 @@ _wvdial()
} &&
complete -F _wvdial wvdial
-# ex: ts=4 sw=4 et filetype=sh
+# ex: filetype=sh