Quantcast
Channel: Take Command / TCC
Viewing all articles
Browse latest Browse all 1678

TCC v32: Parsing IF %@exec[command | command] == 0 ...?

$
0
0
This works in TCC v31.

Code:
v:\> if %@exec[echo foo | findstr foo] == 0 echo yes
foo
yes

in TCC v32 I get this.

Code:
v:\> if %@exec[echo foo | findstr foo] == 0 echo yes
FINDSTR: Cannot open ==
FINDSTR: Cannot open 0
FINDSTR: Cannot open echo
FINDSTR: Cannot open yes
TCC: Syntax error "@exec[echo"
Usage : IF [/I] [NOT] condition [.AND. | .OR. | .XOR. [NOT] condition ...] command

What's up with that?

Viewing all articles
Browse latest Browse all 1678

Trending Articles