From 42fbf0d30b5137ea8db9c01e7f3b26d472133406 Mon Sep 17 00:00:00 2001 From: John Southworth Date: Fri, 30 Sep 2011 12:23:05 -0500 Subject: If there are no completions then always show the non-completions, this gets rid of the empty tab completions --- etc/bash_completion.d/vyatta-op | 5 +++-- 1 file 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[@]} \ -- cgit v1.2.3