On Mon, Feb 18, 2013 at 6:47 PM, Rugxulo <rugx...@gmail.com> wrote:
>> I/O redirection can
>> be used to assign them elsewhere, using the < , >, and | operators.
>> DOS is like Unix in this regard, save that vanilla DOS can't handle
>> stdout and stderr separately.  4DOS can, and there are other third
>> party utilities for doing it.
>
> It's the shell (usually COMMAND.COM) that handles redirection to/from file.
> Redirecting stderr is somewhat rare as such errors are usually meant to be
> verbose anyways and not silenced. But yes, there are ways around that (e.g.
> DJGPP's REDIR.EXE). Check the sources if desired, it's just dup() or such,
> duplicating the file handle.

Rare in DOS, where COMMAND.COM doesn't separate STDOUT and STDERR.
Common in *nix, where the Bash, Bourne,C, Korn and Z shells do.

You often *don't* want the two streams intermixed, and you may wind up
doing something like "foo 1> foo.out 2>&1". to redirect to the same
file.
______
Dennis
https://plus.google.com/u/0/105128793974319004519

------------------------------------------------------------------------------
The Go Parallel Website, sponsored by Intel - in partnership with Geeknet, 
is your hub for all things parallel software development, from weekly thought 
leadership blogs to news, videos, case studies, tutorials, tech docs, 
whitepapers, evaluation guides, and opinion stories. Check out the most 
recent posts - join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Freedos-user mailing list
Freedos-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-user

Reply via email to