summaryrefslogtreecommitdiff
path: root/functions/interpreter
diff options
context:
space:
mode:
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