- May
- 608
- 4
Win XP Pro SP3, TCC 11.00.40
I discovered quite accidentally that a command with a leading question mark (but not a single isolated question mark) asks the user whether to execute the command.
E.g.,
> ?foo
foo (Y/N)? Y
TCC: Unknown command "foo"
> ?echo food
echo food (Y/N)? Y
food
> ?echo drink
echo drink (Y/N)? N
(nothing)
This works if the command is in a .bat or .btm file, too.
I have no alias named "?".
I couldn't find anything in the help file about it (but that just may be because I didn't know how to look it up).
Rex, is this a feature?
I discovered quite accidentally that a command with a leading question mark (but not a single isolated question mark) asks the user whether to execute the command.
E.g.,
> ?foo
foo (Y/N)? Y
TCC: Unknown command "foo"
> ?echo food
echo food (Y/N)? Y
food
> ?echo drink
echo drink (Y/N)? N
(nothing)
This works if the command is in a .bat or .btm file, too.
I have no alias named "?".
I couldn't find anything in the help file about it (but that just may be because I didn't know how to look it up).
Rex, is this a feature?