summaryrefslogtreecommitdiff
path: root/functions/interpreter
diff options
context:
space:
mode:
authorJohn Southworth <john.southworth@vyatta.com>2012-01-05 10:14:50 -0800
committerJohn Southworth <john.southworth@vyatta.com>2012-01-05 10:14:50 -0800
commit60f61c536556cf08359962e2f7cecce7e86ddbb3 (patch)
treee9f3b7d616711a4e37206b1f596fbc0718f8114f /functions/interpreter
parent0383dc70d189aef5dd1c0b2d891a6f568afbc275 (diff)
downloadvyatta-op-60f61c536556cf08359962e2f7cecce7e86ddbb3.tar.gz
vyatta-op-60f61c536556cf08359962e2f7cecce7e86ddbb3.zip
Send interpreter errors to stderr
Diffstat (limited to 'functions/interpreter')
-rw-r--r--functions/interpreter/vyatta-op-run4
1 files changed, 2 insertions, 2 deletions
diff --git a/functions/interpreter/vyatta-op-run b/functions/interpreter/vyatta-op-run
index 7723855..1d460ee 100644
--- a/functions/interpreter/vyatta-op-run
+++ b/functions/interpreter/vyatta-op-run
@@ -135,7 +135,7 @@ _vyatta_op_run ()
fi
# output proper error message based on the above expansion
if [[ "${arg[1]}" == "ambiguous" ]]; then
- echo -ne "\n Ambiguous command: ${args[@]} [$arg]\n"
+ echo -ne "\n Ambiguous command: ${args[@]} [$arg]\n" >&2
local -a cmds=( $(compgen -d $tpath/$arg) )
_vyatta_op_node_path=$tpath
local comps=$(_vyatta_op_help $arg ${cmds[@]##*/})
@@ -143,7 +143,7 @@ _vyatta_op_run ()
eval $restore_shopts
return 1
elif [[ "${arg[1]}" == "invalid" ]]; then
- echo -ne "\n Invalid command: ${args[@]} [$arg]\n\n"
+ echo -ne "\n Invalid command: ${args[@]} [$arg]\n\n" >&2
eval $restore_shopts
return 1
fi