http://bugs.winehq.org/show_bug.cgi?id=21227
--- Comment #5 from Frédéric Delanoy frederic.delanoy@gmail.com 2011-07-14 10:04:56 CDT --- (In reply to comment #3)
"dir | bad" was probably a brain fart.
Hey, in wine, if I do dir > blah > bad type blah I get a sharing violation! I bet cmd leaks a file handle there.
Actually I get one as well. Another problem with redirections I encounter is
echo foo2>> fooT sets "foo" in "fooT", but that's probably because >> is not supported. cmd should probably err in that case, though.