3 ms·
I wasn't aware that Microsoft Windows supported a stderr filehandle separate from stdout. When I worked a little on it about 17 years ago, I thought it didn't h
by pflanze 11y ago
I wasn't aware that Microsoft Windows supported a stderr filehandle separate from stdout. When I worked a little on it about 17 years ago, I thought it didn't have that (e.g. warnings from Perl were intermixed with redirected stdout or so). Did I misinterpret something or has the system been changed?
(Edit: that was longer ago than I first remembered; it was on Windows NT.)
- photokandy 11y agoYeah, Windows NT Workstation 3.1 was the first Windows to have stderr redirection[1]. Windows 95, 98 and Millennium (oh, that horrid edition. I actually bought it! Gag.) don't support redirecting STDERR according to Wiki[2]. [1] https://support.microsoft.com/en-us/kb/110930 https://support.microsoft.com/en-us/kb/110930 [2] https://en.wikipedia.org/wiki/COMMAND.COM#Redirection.2C_piping.2C_and_chaining https://en.wikipedia.org/wiki/COMMAND.COM#Redirection.2C_pip...
- NonEUCitizen 11y agoYou can redirect stderr on Windows (nowadays) -- it's mentioned in your first link. Example: my.exe 2> err.txt
- photokandy 11y agoYes -- I was just indicating that WinNT was the first Windows to do it. Every Windows based on the NT kernel supports stderr redirection. Win95, 98, and ME didn't, since they were on a different kernel. Still can't believe I bought ME. sigh
- pflanze 11y agoThanks. Thus it seems that I misinterpreted it (I was on NT 4): I've got somewhat solid confirmation that Perl also supported it on NT, thus I guess I got to the conclusion from old docs that were written for Win95/98/ME.