- Feb
- 65
- 1
According to the doc, these two seem to be quite close relatives ;)
But I found an undocumented difference (at least not documented where I read...):
* preserves the tail unmodified, whereas $ splits parameters.
So, when calling a bat with argument "foo=goo", echo %* shows exactly that, whereas echo %$ has "foo goo".
I could probably get around this using CMDBatchDelimeters, but since it's doc strongly advises not to use it, I hesitate.
(This is related to the issue of %* being not affected by shift /n)
But I found an undocumented difference (at least not documented where I read...):
* preserves the tail unmodified, whereas $ splits parameters.
So, when calling a bat with argument "foo=goo", echo %* shows exactly that, whereas echo %$ has "foo goo".
I could probably get around this using CMDBatchDelimeters, but since it's doc strongly advises not to use it, I hesitate.
(This is related to the issue of %* being not affected by shift /n)