Suppose I have this in my .gitconfig alias:
testing =!"\
echo \"hi\" \
"
if I run git testing 1 4
it will echo the parameters back to me:
hi 1 4
Also if I use sh to try to get all the parameters it doesn't show the first:
testing =!sh -c 'echo "$@"'
if I run git testing 1 4
it will only show 4
.
What's the reason for this?
I just tested:
This does display all the parameters.
This is similar to "find: missing argument to
-exec
"This would work too: