summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorJohn Southworth <john.southworth@vyatta.com>2011-10-04 15:12:15 -0500
committerJohn Southworth <john.southworth@vyatta.com>2011-10-04 15:42:41 -0500
commit8f6d24369ff3fb820a3f84dc3ec9aab16ab460f3 (patch)
treefacff1289355f4c257a0647c6ed89b8f7b797fad /etc
parentac9013cb1957ee9045a2ddce179dd1cb8b1eaa95 (diff)
downloadvyatta-op-8f6d24369ff3fb820a3f84dc3ec9aab16ab460f3.tar.gz
vyatta-op-8f6d24369ff3fb820a3f84dc3ec9aab16ab460f3.zip
Fix a bug in op mode handling of non sticking completions, we want the help text if the current completion is empty for consistency
Diffstat (limited to 'etc')
-rw-r--r--etc/bash_completion.d/vyatta-op1
1 files changed, 1 insertions, 0 deletions
diff --git a/etc/bash_completion.d/vyatta-op b/etc/bash_completion.d/vyatta-op
index 22353e1..f79cb38 100644
--- a/etc/bash_completion.d/vyatta-op
+++ b/etc/bash_completion.d/vyatta-op
@@ -411,6 +411,7 @@ _vyatta_op_expand ()
_vyatta_op_last_comp=${_vyatta_op_last_comp_init}
# Stop completions from getting stuck
elif [ ${#_vyatta_op_completions[@]} -eq 1 ] &&
+ [ -n "$cur" ] &&
[[ "${COMPREPLY[0]}" =~ "$cur" ]]; then
_vyatta_op_last_comp=${_vyatta_op_last_comp_init}
# if there are no completions then always show the non-comps