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 16:13:41 -0500
commit38883c022a45e1dd2e6bebd37b05396caf15fed5 (patch)
treef1c22637c1a275565166170a12b65c6df3aa8812 /etc
parent1cdce4a6d655c89a9d9267a6037620424fadd511 (diff)
downloadvyatta-op-38883c022a45e1dd2e6bebd37b05396caf15fed5.tar.gz
vyatta-op-38883c022a45e1dd2e6bebd37b05396caf15fed5.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