summaryrefslogtreecommitdiff
path: root/functions/interpreter/vyatta-op-run
diff options
context:
space:
mode:
authorJohn Southworth <john.southworth@vyatta.com>2012-02-14 21:54:37 -0800
committerJohn Southworth <john.southworth@vyatta.com>2012-02-14 21:54:37 -0800
commitb05a5eebc73ab15c1ae82f79e221e1e476a9b1b1 (patch)
treef42d5922802904c38897a2418230afac37547e00 /functions/interpreter/vyatta-op-run
parentb08c5f26856bafdf544e5d60bcf7a8966e3ad73c (diff)
downloadvyatta-op-b05a5eebc73ab15c1ae82f79e221e1e476a9b1b1.tar.gz
vyatta-op-b05a5eebc73ab15c1ae82f79e221e1e476a9b1b1.zip
escape escape characters so they aren't evaluated during command processing
Diffstat (limited to 'functions/interpreter/vyatta-op-run')
-rw-r--r--functions/interpreter/vyatta-op-run1
1 files changed, 1 insertions, 0 deletions
diff --git a/functions/interpreter/vyatta-op-run b/functions/interpreter/vyatta-op-run
index bc01dd2..365c9cd 100644
--- a/functions/interpreter/vyatta-op-run
+++ b/functions/interpreter/vyatta-op-run
@@ -110,6 +110,7 @@ _vyatta_op_conv_run_cmd ()
run_cmd=$1
run_cmd="${run_cmd/\"\$\@\"/${args[*]}}"
run_cmd="${run_cmd/\$\*/${args[*]}}"
+ run_cmd="${run_cmd//\\/\\\\}"
inquote=0;
outcmd='';
OIFS=$IFS