INPUT
or SET /P
fails if the entered text contains pair of square brackets.
Code:
[C:\]INPUT Enter text: %%myvar
Enter text: Sample text [ to fail input ]
TCC: Not an array variable "myvar"
[C:\]
The documentation does not mention anything about this behavior so Its not clear to me if it is intentional or not.
The
QUERYBOX
command does not pose this limitation/behavior.So is there any way to get such an input from stdin?