summaryrefslogtreecommitdiff
path: root/etc/bash_completion.d/vyatta-op
diff options
context:
space:
mode:
authorJohn Southworth <john.southworth@vyatta.com>2011-09-30 17:57:17 -0500
committerJohn Southworth <john.southworth@vyatta.com>2011-09-30 17:58:02 -0500
commitdc73cf6efeaf5d1577c930f29417fe323502edd9 (patch)
tree73a05b7368ffcea354909ae6274ca30f80a1906b /etc/bash_completion.d/vyatta-op
parente8cacf000baaa9a51c1421aacd8d3dc20167aab0 (diff)
downloadvyatta-op-dc73cf6efeaf5d1577c930f29417fe323502edd9.tar.gz
vyatta-op-dc73cf6efeaf5d1577c930f29417fe323502edd9.zip
Fix output of invalid and ambiguous error messages
Diffstat (limited to 'etc/bash_completion.d/vyatta-op')
-rw-r--r--etc/bash_completion.d/vyatta-op6
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/bash_completion.d/vyatta-op b/etc/bash_completion.d/vyatta-op
index 87e2625..428a559 100644
--- a/etc/bash_completion.d/vyatta-op
+++ b/etc/bash_completion.d/vyatta-op
@@ -280,10 +280,10 @@ _vyatta_op_invalid_completion ()
local -a cmds=( "$tpath/$arg"* )
_vyatta_op_node_path=$tpath
local comps=$(_vyatta_op_help $arg ${cmds[@]##*/})
- echo -e "$comps" | sed -e 's/^P/ P/'
+ echo -ne "$comps" | sed -e 's/^P/ P/'
break
elif [[ "${arg[1]}" == "invalid" ]]; then
- echo -ne "\n Invalid command: ${args[@]} [$arg]\n"
+ echo -ne "\n Invalid command: ${args[@]} [$arg]"
break
fi
@@ -292,7 +292,7 @@ _vyatta_op_invalid_completion ()
elif [ -f $tpath/node.tag/node.def ] ; then
tpath+=/node.tag
else
- echo -ne "\n Invalid command: ${args[@]} [$arg]\n" >&2
+ echo -ne "\n Invalid command: ${args[@]} [$arg]" >&2
break
fi
args[$i]=$arg