Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!uxc!iuvax!bobmon From: bobmon@iuvax.cs.indiana.edu (RAMontante) Newsgroups: comp.sys.ibm.pc Subject: Re: redirecting std[in,out,err] vs. the shell Keywords: redirection, command.com Message-ID: <20112@iuvax.cs.indiana.edu> Date: 28 Apr 89 03:06:26 GMT References: <5608@microsoft.UUCP> Reply-To: bobmon@iuvax.cs.indiana.edu (RAMontante) Distribution: usa Organization: malkaryotic Lines: 13 randyn@microsoft.UUCP (Randy Nevin) <5608@microsoft.UUCP> : - -fact that the shell (sh or csh on unix, command.com on dos) does not do this -for you does not prohibit you from doing it yourself. below is the code to a Note, though, that sh, csh, tcsh (and any other shell, I expect) on unix *do* support redirection. COMMAND.COM does not support redirection of stderr, although it does mimic the unix notion of redirection and piping of stdin and stout. Some (not all) of the scorn that MSDOS generates is caused by this incomplete and inept mimicking of unix's behavior. Thanks to Randy for showing a workaround.