Further ll fixes for escaped spaces and quotes!

This commit is contained in:
Nathan Broadbent
2012-10-23 23:34:15 +13:00
parent c20b91442a
commit 436b0da138
3 changed files with 14 additions and 10 deletions

View File

@@ -138,7 +138,7 @@ scmb_expand_args() {
# 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)
exec_scmb_expand_args() { eval "$(scmb_expand_args "$@" | sed -e 's/\([][()<>^ ]\)/\\\1/g')"; }
exec_scmb_expand_args() { eval "$(scmb_expand_args "$@" | sed -e "s/\([][()<>^ \"']\)/"'\\\1/g')"; }
# Clear numbered env variables
git_clear_vars() {