I'm using Git Bash v1.8.1, with a few aliases (for testing):
[alias]
ekko = !echo $1 && echo $1
ekko2 = !sh -c 'echo $1 && echo $1'
But when I run them, I see:
> git ekko master
master
master master
And:
> git ekko2 master
(blank line)
(blank line)
My intended behavior is:
> git ekko master
master
master
I'm fairly new to aliases - I'm looking for a way to ensure that my arguments are consumed entirely, and not appended to the end of the alias. Some sleuthing indicates this behavior changed somewhere around Git v1.7.x, and I haven't yet determined exactly how to accomplish this: