From d03721ce6e2a277c2992afb1392912beb8ac368d Mon Sep 17 00:00:00 2001 From: John Southworth Date: Wed, 11 Apr 2012 13:29:52 -0700 Subject: Bugfix 8013: Fix space at end of line in command conversion --- functions/interpreter/vyatta-op-run | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'functions') diff --git a/functions/interpreter/vyatta-op-run b/functions/interpreter/vyatta-op-run index 365c9cd..da16ae4 100644 --- a/functions/interpreter/vyatta-op-run +++ b/functions/interpreter/vyatta-op-run @@ -134,7 +134,11 @@ _vyatta_op_conv_run_cmd () [[ "$word" =~ \$[0-9] ]]; then word=$( sed -e 's/\$\([0-9]\)/\$\{args\[\1\]\}/g' <<<"$word" ) fi - outline+="$word " + if [[ "$word" != '\\' ]]; then + outline+="$word " + else + outline+="$word" + fi done IFS=$'\n' line=$outline -- cgit v1.2.3