X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-2.2 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 rcsaba@gmail.com designates 10.52.68.139 as permitted sender) client-ip=10.52.68.139;
Authentication-Results: mr.google.com; spf=pass (google.com: domain of rcsaba@gmail.com designates 10.52.68.139 as permitted sender) smtp.mail=rcsaba@gmail.com; dkim=pass header.i=rcsaba@gmail.com
MIME-Version: 1.0
In-Reply-To: <CAB8Xom9zz5CN+yE6cHBj-h-PG4aUxghckkmAYZiQko8SfmNuhQ@mail.gmail.com>
References: <4F4F21AC.7060209@cs.cmu.edu>	<CAB8Xom9zz5CN+yE6cHBj-h-PG4aUxghckkmAYZiQko8SfmNuhQ@mail.gmail.com>
Date: Thu, 1 Mar 2012 08:47:02 +0100
Message-ID: <CAEhDDbCA2YSUfyqNZaTfxgg_f43YgeuPZOS=Z6cyvMVeP5cDkQ@mail.gmail.com>
Subject: Re: question on Cygwin's version of make
From: Csaba Raduly <rcsaba@gmail.com>
To: cygwin@cygwin.com
Cc: pnewell@cs.cmu.edu
Content-Type: text/plain; charset=ISO-8859-1
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id q217lR6X018053

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

(that's what I use with bash)

Csaba
-- 
GCS a+ e++ d- C++ ULS$ L+$ !E- W++ P+++$ w++$ tv+ b++ DI D++ 5++
The Tao of math: The numbers you can count are not the real numbers.
Life is complex, with real and imaginary parts.
"Ok, it boots. Which means it must be bug-free and perfect. " -- Linus Torvalds
"People disagree with me. I just ignore them." -- Linus Torvalds

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


