delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/03/01/02:55:31

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.7 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW
X-Spam-Check-By: sourceware.org
Received-SPF: pass (google.com: domain of marco DOT atzeri AT gmail DOT com designates 10.236.173.202 as permitted sender) client-ip=10.236.173.202;
Authentication-Results: mr.google.com; spf=pass (google.com: domain of marco DOT atzeri AT gmail DOT com designates 10.236.173.202 as permitted sender) smtp.mail=marco DOT atzeri AT gmail DOT com; dkim=pass header.i=marco DOT atzeri AT gmail DOT com
MIME-Version: 1.0
In-Reply-To: <CAEhDDbCA2YSUfyqNZaTfxgg_f43YgeuPZOS=Z6cyvMVeP5cDkQ@mail.gmail.com>
References: <4F4F21AC DOT 7060209 AT cs DOT cmu DOT edu> <CAB8Xom9zz5CN+yE6cHBj-h-PG4aUxghckkmAYZiQko8SfmNuhQ AT mail DOT gmail DOT com> <CAEhDDbCA2YSUfyqNZaTfxgg_f43YgeuPZOS=Z6cyvMVeP5cDkQ AT mail DOT gmail DOT com>
Date: Thu, 1 Mar 2012 08:55:05 +0100
Message-ID: <CAB8Xom-x_um2yRi46r-enu=iJZUe-N2HR_tvf-25VFXBFHOsqQ@mail.gmail.com>
Subject: Re: question on Cygwin's version of make
From: marco atzeri <marco DOT atzeri AT gmail DOT com>
To: cygwin AT cygwin DOT com
Cc: pnewell AT cs DOT cmu DOT edu
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id q217tQoN018523

On Thu, Mar 1, 2012 at 8:47 AM, Csaba Raduly  wrote:
> On Thu, Mar 1, 2012 at 8:23 AM, marco atzeri  wrote:
>> On Thu, Mar 1, 2012 at 8:13 AM, Paul Allen Newell  wrote:
> (snip)
>>> I also noticed that if I run "make >& make.out" that the message is printed
>>> to the terminal and is not in make.out. What am I missing to capture all
>>> output in make.out?
>>
>> I like this way
>>
>> make &2>1  |tee make.out
>>
>> "&2>1"  redirect the error message to the std output
>
> Shouldn't that be
>
> make 2>&1 | tee make.out

yes correct,
typo from my side

Paul,
looks on
http://tldp.org/HOWTO/Bash-Prog-Intro-HOWTO-3.html
http://www.linuxtopia.org/online_books/advanced_bash_scripting_guide/io-redirection.html

for further info.

>
> Csaba
> --

Marco

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


- Raw text -


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