diff options
author | John Southworth <john.southworth@vyatta.com> | 2012-02-14 21:54:37 -0800 |
---|---|---|
committer | John Southworth <john.southworth@vyatta.com> | 2012-02-14 21:54:37 -0800 |
commit | b05a5eebc73ab15c1ae82f79e221e1e476a9b1b1 (patch) | |
tree | f42d5922802904c38897a2418230afac37547e00 /functions/interpreter | |
parent | b08c5f26856bafdf544e5d60bcf7a8966e3ad73c (diff) | |
download | vyatta-op-b05a5eebc73ab15c1ae82f79e221e1e476a9b1b1.tar.gz vyatta-op-b05a5eebc73ab15c1ae82f79e221e1e476a9b1b1.zip |
escape escape characters so they aren't evaluated during command processing
Diffstat (limited to 'functions/interpreter')
-rw-r--r-- | functions/interpreter/vyatta-op-run | 1 |
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 |