diff options
author | Tom Grennan <tgrennan@vyatta.com> | 2007-10-04 18:10:03 -0700 |
---|---|---|
committer | Tom Grennan <tgrennan@vyatta.com> | 2007-10-04 18:10:03 -0700 |
commit | fd141a3ac06bdbf52f38a7be6d72a392d951b67d (patch) | |
tree | 9b12acf4edb302409d161c7a70f00f75215a0bf2 /etc | |
parent | ef21466f9202fe7406cd07f22838a7a349fde4ef (diff) | |
download | vyatta-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-op | 8 |
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" ) |