- May
- 13,729
- 209
The second ECHO command below seems to figure out the quoting OK. But both IF and IFF choke on it. What's up with that?
Code:
v:\> echo 2018xxx > "v:\a b"
v:\> echo "%@execstr[grep 2018 "v:\a b"]"
"2018xxx"
v:\> if "%@execstr[grep 2018 "v:\a b"]" NE "" echo yes
TCC: Syntax error "@execstr[grep 2018 "v:\a"
Usage : IF [/I] [NOT] condition [.AND. | .OR. | .XOR. [NOT] condition ...] command
v:\> iff "%@execstr[grep 2018 "v:\a b"]" NE "" then & echo yes & endiff
TCC: Syntax error "@execstr[grep 2018 "v:\a"
Usage : IFF [NOT] condition [.AND. | .OR. | .XOR. [NOT] condition ...] THEN & commands
yes
TCC: Unknown command "endiff"