Mathematical Functions
Stephen Powell
me@privacy.net
Sat May 4 01:30:00 GMT 2002
>>>>> "Randall" == Randall R Schulz <rrschulz@cris.com> writes:
[...]
> Secondly, the reason I/O redirection didn't capture the
> compiler's error messages is that errors are sent to the
> "standard error" output, which requires a variant redirection
> syntax:
> BASH & ash:
[...]
> commandThatProducesErrorMessages >allOutput 2>&1
In BASH you can also use &> to redirect standard output and standard
error to the same place. I find this easier to type. See the BASH
man page section titled /REDIRECTION/.
commandThatProducesErrorMessages &>allOutput
--
Stephen Powell
stephen_powell@optusnet.com.au
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
More information about the Cygwin
mailing list