summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorJohn Southworth <john.southworth@vyatta.com>2011-09-30 14:20:57 -0500
committerJohn Southworth <john.southworth@vyatta.com>2011-09-30 14:20:57 -0500
commitb1c3659db8ace8758605afb870e5e4d6dc29a831 (patch)
tree414af4e2bdae35129b4ff8f0cc8fa0f982f54b42 /etc
parent3cd9a3c96ada5480e7492eccc75d5f63191f665c (diff)
downloadvyatta-op-b1c3659db8ace8758605afb870e5e4d6dc29a831.tar.gz
vyatta-op-b1c3659db8ace8758605afb870e5e4d6dc29a831.zip
fix handleing of invalid commands when there is an the parent node is runnable
Diffstat (limited to 'etc')
-rw-r--r--etc/bash_completion.d/vyatta-op2
1 files changed, 1 insertions, 1 deletions
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+=('<Enter>')
fi