From b05a5eebc73ab15c1ae82f79e221e1e476a9b1b1 Mon Sep 17 00:00:00 2001 From: John Southworth Date: Tue, 14 Feb 2012 21:54:37 -0800 Subject: escape escape characters so they aren't evaluated during command processing --- functions/interpreter/vyatta-op-run | 1 + 1 file changed, 1 insertion(+) (limited to 'functions') 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 -- cgit v1.2.3