diff options
author | John Southworth <john.southworth@vyatta.com> | 2011-09-30 17:57:17 -0500 |
---|---|---|
committer | John Southworth <john.southworth@vyatta.com> | 2011-09-30 17:57:17 -0500 |
commit | 7fcc8a9668dc26640eda1511e610d70f2f6570c8 (patch) | |
tree | 5e51e17c6cf0d821940e98b004a07681cb2c1e34 | |
parent | 35d8986492216fd37c60821e15bb864a70c138a1 (diff) | |
download | vyatta-op-7fcc8a9668dc26640eda1511e610d70f2f6570c8.tar.gz vyatta-op-7fcc8a9668dc26640eda1511e610d70f2f6570c8.zip |
Fix output of invalid and ambiguous error messages
-rw-r--r-- | etc/bash_completion.d/vyatta-op | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/bash_completion.d/vyatta-op b/etc/bash_completion.d/vyatta-op index fd38763..f10084a 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 |