Your syntax is a bit off. TCC's parser is smarter than CMD's, and is trying to associate the command group with the appropriate shell. (CMD just appends everything on the line, which is bad if you're doing another embedded pipe.)
The correct syntax (which works as expected in both TCC and CMD) is to group the entire pipe process:
If it would have been smarter, it'd recognize entire IF as a block operator without "wrapping it into a single line, like CMD does".
That would've been smart.
If it would have been smarter, it'd recognize entire IF as a block operator without "wrapping it into a single line, like CMD does".
That would've been smart.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.