summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorTom Grennan <tgrennan@vyatta.com>2007-11-21 10:18:08 -0800
committerTom Grennan <tgrennan@vyatta.com>2007-11-21 10:18:08 -0800
commitc3fcc31fad69cff57a42782bc9f7f7cb7f192d62 (patch)
treedfcd56228136e104b8961ca29f40cc228a64ab04 /etc
parent859dc533e05e54345c4d1d858031e92931248283 (diff)
downloadvyatta-op-c3fcc31fad69cff57a42782bc9f7f7cb7f192d62.tar.gz
vyatta-op-c3fcc31fad69cff57a42782bc9f7f7cb7f192d62.zip
expand help label and use echo instead of printf
Diffstat (limited to 'etc')
-rw-r--r--etc/bash_completion.d/10vyatta-op9
1 files changed, 5 insertions, 4 deletions
diff --git a/etc/bash_completion.d/10vyatta-op b/etc/bash_completion.d/10vyatta-op
index 5b74d93..4d47a8c 100644
--- a/etc/bash_completion.d/10vyatta-op
+++ b/etc/bash_completion.d/10vyatta-op
@@ -83,12 +83,13 @@ _vyatta_op_get_node_def_field ()
_vyatta_op_print_help ()
{
local label=$1 ; shift
- local -i len=12
- if [ ${#label} -lt $len ] ; then
- printf "\n %-${len}s\t%b" "$label" "$*"
+ if [ ${#label} -lt 6 ] ; then
+ echo -ne "\n $label\t\t" $*
+ elif [ ${#label} -lt 14 ] ; then
+ echo -ne "\n $label\t" $*
else
- printf "\n %s\n\t\t%b" "$label" "$*"
+ echo -ne "\n $label\n\t\t" $*
fi
}