summaryrefslogtreecommitdiff
path: root/functions/interpreter
diff options
context:
space:
mode:
authorJohn Southworth <john.southworth@vyatta.com>2012-04-11 13:29:52 -0700
committerJohn Southworth <john.southworth@vyatta.com>2012-04-11 13:29:52 -0700
commitd03721ce6e2a277c2992afb1392912beb8ac368d (patch)
tree92833e372e1c0f5f3eaf708e201ff8ccb2ce795e /functions/interpreter
parent3f7b4540b4833a6fa42ade9ab2e34f77463763c6 (diff)
downloadvyatta-op-d03721ce6e2a277c2992afb1392912beb8ac368d.tar.gz
vyatta-op-d03721ce6e2a277c2992afb1392912beb8ac368d.zip
Bugfix 8013: Fix space at end of line in command conversion
Diffstat (limited to 'functions/interpreter')
-rw-r--r--functions/interpreter/vyatta-op-run6
1 files changed, 5 insertions, 1 deletions
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