Added even more escaped characters for command line evaluation

This commit is contained in:
Nathan Broadbent
2012-08-13 02:52:18 +12:00
parent cf37be73d4
commit e7d7b8b2c1

View File

@@ -135,7 +135,7 @@ git_expand_args() {
# Execute a command with expanded args, e.g. Delete files 6 to 12: $ ge rm 6-12 # Execute a command with expanded args, e.g. Delete files 6 to 12: $ ge rm 6-12
# Fails if command is a number or range (probably not worth fixing) # Fails if command is a number or range (probably not worth fixing)
exec_git_expand_args() { eval "$(git_expand_args "$@" | sed -e "s/ /\\\ /g")"; } exec_git_expand_args() { eval "$(git_expand_args "$@" | sed -e 's/\([][()<> ]\)/\\\1/g')"; }
# Clear numbered env variables # Clear numbered env variables
git_clear_vars() { git_clear_vars() {