summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorTom Grennan <tgrennan@vyatta.com>2007-10-04 18:10:03 -0700
committerTom Grennan <tgrennan@vyatta.com>2007-10-04 18:10:03 -0700
commitfd141a3ac06bdbf52f38a7be6d72a392d951b67d (patch)
tree9b12acf4edb302409d161c7a70f00f75215a0bf2 /etc
parentef21466f9202fe7406cd07f22838a7a349fde4ef (diff)
downloadvyatta-op-fd141a3ac06bdbf52f38a7be6d72a392d951b67d.tar.gz
vyatta-op-fd141a3ac06bdbf52f38a7be6d72a392d951b67d.zip
don't eval help string; so, no longer needs to be quoted in node.def files
Diffstat (limited to 'etc')
-rw-r--r--etc/bash_completion.d/vyatta-op8
1 files changed, 4 insertions, 4 deletions
diff --git a/etc/bash_completion.d/vyatta-op b/etc/bash_completion.d/vyatta-op
index 0175528..10d65e4 100644
--- a/etc/bash_completion.d/vyatta-op
+++ b/etc/bash_completion.d/vyatta-op
@@ -225,9 +225,9 @@ _vyatta_op_print_help ()
echo -en "\nPossible completions:"
for (( idx = 0 ; idx < ${#comps[@]} ; idx++ )) ; do
if [ ${#comps[idx]} -lt $taglen ] ; then
- printf "\n %-${taglen}s\t%s" "${comps[idx]}" "${helps[idx]}"
+ printf "\n %-${taglen}s\t%b" "${comps[idx]}" "${helps[idx]}"
else
- printf "\n %s\n\t\t%s" "${comps[idx]}" "${helps[idx]}"
+ printf "\n %s\n\t\t%b" "${comps[idx]}" "${helps[idx]}"
fi
done
}
@@ -250,7 +250,7 @@ _vyatta_op_help ()
eval $restore_shopts
if [ -f $subtag ]; then
allowed=($( eval "$( _vyatta_op_get_node_def_field $subtag allowed )" ))
- eval help="$( _vyatta_op_get_node_def_field $subtag help )"
+ help=$( _vyatta_op_get_node_def_field $subtag help )
if [ ${#allowed[@]} -ne 0 ] ; then
for a in "${allowed[@]}"; do
hcomps+=( "$a" )
@@ -261,7 +261,7 @@ _vyatta_op_help ()
if [ ${#subnodes[@]} -ne 0 ] ; then
for n in ${subnodes[@]} ; do
- eval help="$( _vyatta_op_get_node_def_field $n help )"
+ help=$( _vyatta_op_get_node_def_field $n help )
subdir=${n%/node.def}
hcomps+=( "${subdir##*/}" )
hstrs+=( "$help" )