Correct. From Dave's post above http://www.dostips.com/forum/viewtopic.php?p=32776#p32776: "What I can see being difficult to work with is quoting and escape sequences given that there are three levels of implicit CMD /C : 1 level for the outer pipe, 1 level for the FOR /F command IN() clause, and 1 level for the inner pipes within the IN() clause".Ed Dyreen wrote:Is that not just like a quoting/escaping problem ?
Not a bug, it's just that the right-hand side of the pipe - in this case the 'for' loop - runs in a new instance of cmd, which has echo on by default. If you want to turn it off in _that_ instance, then you have to do it explicitly since the 'echo' status is not inherited.Ed Dyreen wrote:The @ is more strange to me, must be some bug :S
Code: Select all
dir /b /a-d | (echo off & for /F "delims=" %%a in (' findstr "a" ') do echo %%a)
Liviu