- May
- 80
- 0
There seems to be some inconsistency in the way that the two batch file parameters for command tail handle things:
Consider this batch file (cmdtail.btm):
When you run the following command:
You get the following:
Is this correct behavior? I mean the fact that %$ omits the "="? Are they supposed to be different? Did the behavior change on some version? For reference, the behavior, apart from %$ of course is the same in cmd.exe.
This is a problem that occurred from maven, so it does have real-world significance :)
Perhaps this has been posted before, but I didn't know how to search this. :)
Consider this batch file (cmdtail.btm):
Code:
@echo off
echo Star -- %*
echo Dollar -- %$
echo 0 : %0
echo 1 : %1
echo 2 : %2
echo 3 : %3
Code:
cmdtail alpha beta=gamma
Code:
Star -- alpha beta=gamma
Dollar -- alpha beta gamma
0 : cmdtail
1 : alpha
2 : beta
3 : gamma
This is a problem that occurred from maven, so it does have real-world significance :)
Perhaps this has been posted before, but I didn't know how to search this. :)