- Jun
- 744
- 16
I don't remember noticing this before. In aliases, %$ returns the entire command tail as entered"
However, in a batch file, the equal sign is stripped, despite the fact that the help describes it as "the complete command tail, modified by SHIFT".
The parameter %* does work as I would expect in batch files.
There is either a mistake in the code or a mistake in the documentation.
Code:
TCC(33.00.20): C:\commands\bat>alias zz
echo Command Tail: %$
TCC(33.00.20): C:\commands\bat>zz a=b
Command Tail: a=b
However, in a batch file, the equal sign is stripped, despite the fact that the help describes it as "the complete command tail, modified by SHIFT".
Code:
TCC(33.00.20): C:\commands\bat>type test.btm
echo Command Tail: %$
TCC(33.00.20): C:\commands\bat>test.btm a=b
Command Tail: a b
The parameter %* does work as I would expect in batch files.
Code:
TCC(33.00.20): C:\commands\bat>type test.btm
echo Command Tail: %*
TCC(33.00.20): C:\commands\bat>test.btm a=b
Command Tail: a=b
There is either a mistake in the code or a mistake in the documentation.