Browse Source

fix 60150 values containing backtick or $ character cause shell error on *nix

master
Jeffrey Adamson Stefan Bodewig 8 years ago
parent
commit
ce6843657c
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/script/ant

+ 2
- 2
src/script/ant View File

@@ -35,8 +35,8 @@ for arg in "$@" ; do
if [ my"$arg" = my"-h" -o my"$arg" = my"-help" ] ; then
show_help=true
fi
# wrap all arguments as "" strings, escape any internal back-slash or double-quote characters
ant_exec_args="$ant_exec_args \"$(printf '%s\n' "$arg" | sed -e 's@"\|\\@\\\0@g' )\""
# wrap all arguments as "" strings, escape any internal back-slash, double-quote, $, or back-tick characters
ant_exec_args="$ant_exec_args \"$(printf '%s\n' "$arg" | sed -e 's@\$\|`\|"\|\\@\\\0@g' )\""
fi
done



Loading…
Cancel
Save