From b1c3659db8ace8758605afb870e5e4d6dc29a831 Mon Sep 17 00:00:00 2001 From: John Southworth Date: Fri, 30 Sep 2011 14:20:57 -0500 Subject: fix handleing of invalid commands when there is an the parent node is runnable --- etc/bash_completion.d/vyatta-op | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/bash_completion.d/vyatta-op b/etc/bash_completion.d/vyatta-op index 7a8206e..ed751c0 100644 --- a/etc/bash_completion.d/vyatta-op +++ b/etc/bash_completion.d/vyatta-op @@ -225,7 +225,7 @@ _vyatta_op_set_completions () ndef=${_vyatta_op_node_path}/node.def [ -f $ndef ] && \ node_run=$( _vyatta_op_get_node_def_field $ndef run ) - if [ -n "$node_run" ]; then + if [ -z "$cur" -a -n "$node_run" ]; then _vyatta_op_noncompletions+=('') fi -- cgit v1.2.3