Skip to content

Commit

Permalink
exec_scmb_expand_args: Escape ampersands.
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Brinich-Langlois authored and Patrick Brinich-Langlois committed Aug 24, 2015
1 parent 53aba36 commit 6e28eb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/git/status_shortcuts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ _print_path() {
# 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')"
eval "$(scmb_expand_args "$@" | sed -e "s/\([][|;()<>^ \"'&]\)/"'\\\1/g')"
}

# Clear numbered env variables
Expand Down

0 comments on commit 6e28eb6

Please sign in to comment.