summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
Diffstat (limited to 'etc')
-rw-r--r--etc/bash_completion.d/vyatta-op3
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/bash_completion.d/vyatta-op b/etc/bash_completion.d/vyatta-op
index 815b264..2f50214 100644
--- a/etc/bash_completion.d/vyatta-op
+++ b/etc/bash_completion.d/vyatta-op
@@ -413,7 +413,8 @@ _vyatta_op_expand ()
# This is non obvious...
# To have completion continue to work when working with words that aren't the last word,
# we have to set nospace at the beginning of this script and then append the spaces here.
- if [ ${#COMPREPLY[@]} -eq 1 ];then
+ if [ ${#COMPREPLY[@]} -eq 1 ] &&
+ [[ $_has_comptype -ne 1 ]]; then
COMPREPLY=( "${COMPREPLY[0]} " )
fi
# if there are no completions then handle invalid commands