This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Mathematical Functions


>>>>> "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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]