Re: sed "Hello, world!" program?

Tim Chase <[email protected]>
Newsgroups gmane.editors.sed.user
Message-ID <[email protected]>
On 2014-02-21 23:38, Petr Láz\u0148ovský wrote:
>>> So you need a 2>
>>  
>>  which doesn't work under cmd.exe :-)
> 
> Why do you think the stream redirection 2>&1 does not work under
> cmd.exe?

Testing?

==============================================
C:\Temp>type stde.py
import sys
sys.stdout.write("On stdout\n")
sys.stderr.write("On stderr\n")
print repr(sys.argv) # just to see what python sees

C:\Temp>python stde.py 2>&1 > ste.txt
On stderr

C:\Temp>
==============================================

I don't know if it's been improved since XP (the only Win32 box I
have at my ready).

-tkc
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.