From dc73cf6efeaf5d1577c930f29417fe323502edd9 Mon Sep 17 00:00:00 2001 From: John Southworth Date: Fri, 30 Sep 2011 17:57:17 -0500 Subject: Fix output of invalid and ambiguous error messages --- etc/bash_completion.d/vyatta-op | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'etc') 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 -- cgit v1.2.3