summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/changelog10
-rw-r--r--etc/bash_completion.d/10vyatta-op23
2 files changed, 24 insertions, 9 deletions
diff --git a/debian/changelog b/debian/changelog
index ada6bc6..8620f15 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,13 @@
+vyatta-op (0.13.21) unstable; urgency=low
+
+ [ Stephen Hemminger ]
+ * remove unwanted allowed tag
+
+ [ slioch ]
+ * now supports quoted values for op mode commands
+
+ -- slioch <slioch@eng-140.vyatta.com> Thu, 03 Sep 2009 11:03:41 -0700
+
vyatta-op (0.13.20) unstable; urgency=low
[ Stig Thormodsrud ]
diff --git a/etc/bash_completion.d/10vyatta-op b/etc/bash_completion.d/10vyatta-op
index 4735462..66154f8 100644
--- a/etc/bash_completion.d/10vyatta-op
+++ b/etc/bash_completion.d/10vyatta-op
@@ -306,17 +306,22 @@ _vyatta_op_run ()
_vyatta_op_last_comp=${_vyatta_op_last_comp_init}
false; estat=$?
- for arg ; do
- if [ -f "$tpath/$arg/node.def" ] ; then
- tpath+=/$arg
- elif [ -f $tpath/node.tag/node.def ] ; then
- tpath+=/node.tag
- else
- echo "Invalid command" >&2
+
+ i=1
+ for arg in "$@"
+ do
+ if [ -f "$tpath/$arg/node.def" ] ; then
+ tpath+=/$arg
+ elif [ -f $tpath/node.tag/node.def ] ; then
+ tpath+=/node.tag
+ else
+ echo "Invalid command" >&2
eval $restore_shopts
- return 1
- fi
+ return 1
+ fi
+ let "i+=1"
done
+
local run_cmd=$(_vyatta_op_get_node_def_field $tpath/node.def run)
local ret=0
if [ -n "$run_cmd" ]; then