delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/05/04/04:30:40

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
To: cygwin AT cygwin DOT com
X-Injected-Via-Gmane: http://gmane.org/
Path: not-for-mail
From: Stephen Powell <me AT privacy DOT net>
Newsgroups: gmane.os.cygwin
Subject: Re: Mathematical Functions
Date: Fri, 03 May 2002 16:16:56 +1000
Organization: Hail Eris!
Lines: 24
Message-ID: <uadrhg3hj.fsf@127.0.0.1>
References: <CEB144BF16CCD2118F4800805FE6A25302BD5E87 AT NPRI54EXC07 DOT NPT DOT N UWC.NAVY.MIL>
<5 DOT 1 DOT 0 DOT 14 DOT 2 DOT 20020502101039 DOT 02752af0 AT pop3 DOT cris DOT com>
Reply-To: Stephen_Powell AT optusnet DOT com DOT au
NNTP-Posting-Host: sdcax80-a112.dialup.optusnet.com.au
Mime-Version: 1.0
X-Trace: main.gmane.org 1020500997 1745 211.28.7.112 (4 May 2002 08:29:57 GMT)
X-Complaints-To: usenet AT main DOT gmane DOT org
NNTP-Posting-Date: Sat, 4 May 2002 08:29:57 +0000 (UTC)
X-Posting-Agent: Hamster/1.3.23.3
User-Agent: Gnus/5.090007 (Oort Gnus v0.07) Emacs/21.2
(i386-mingw-nt5.0.2195)
Cancel-Lock: sha1:tY9lpL8NcKcBMnXeT60Ulqakrzs=

>>>>> "Randall" == Randall R Schulz <rrschulz AT cris DOT 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 AT optusnet DOT com DOT 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019