diff options
-rw-r--r-- | etc/bash_completion.d/vyatta-op | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/etc/bash_completion.d/vyatta-op b/etc/bash_completion.d/vyatta-op index c1d27c8..aa344f1 100644 --- a/etc/bash_completion.d/vyatta-op +++ b/etc/bash_completion.d/vyatta-op @@ -313,8 +313,9 @@ _vyatta_op_expand () fi done fi - - if [ "${COMP_WORDS[*]}" == "$_vyatta_op_last_comp" ] ; then + # if there are no completions then always show the non-comps + if [ "${COMP_WORDS[*]}" == "$_vyatta_op_last_comp" ] || + [ ${#_vyatta_op_completions[@]} -eq 0 ]; then _vyatta_op_help "$cur" \ ${_vyatta_op_noncompletions[@]} \ ${_vyatta_op_completions[@]} \ |