From 60f61c536556cf08359962e2f7cecce7e86ddbb3 Mon Sep 17 00:00:00 2001 From: John Southworth Date: Thu, 5 Jan 2012 10:14:50 -0800 Subject: Send interpreter errors to stderr --- functions/interpreter/vyatta-op-run | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'functions/interpreter') 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 -- cgit v1.2.3