delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/03/13/05:55:30

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
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: "Robert Mark Bram" <relaxedrob AT no DOT spam DOT optushome DOT com DOT au>
Newsgroups: gmane.os.cygwin
Subject: Re: IO Redirection
Date: Wed, 13 Mar 2002 21:54:55 +1100
Lines: 27
Message-ID: <a6nb61$jon$1@main.gmane.org>
References: <Pine DOT GSO DOT 4 DOT 44 DOT 0203131135120 DOT 1388-100000 AT domino DOT informatik DOT uni-kl DOT de>
NNTP-Posting-Host: c16563.frank1.vic.optusnet.com.au
X-Trace: main.gmane.org 1016016898 20247 210.49.205.182 (13 Mar 2002 10:54:58 GMT)
X-Complaints-To: usenet AT main DOT gmane DOT org
NNTP-Posting-Date: Wed, 13 Mar 2002 10:54:58 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6700
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700

Thanks for the reply!

> > How do I append error output?
> > How do I append error and standard output?
>
>  Just as you have written?
>  ">>" appends, ">" write to a new file, independend of the file
>  or source selected. That is,  "&>>file" appends both.
>
>  Why is that not obvious ?

This is why:

Robert Mark Bram AT DIJONG ~
$ ls
errors  script1  script2  temp

Robert Mark Bram AT DIJONG ~
$ ls &>> temp
bash: syntax error near unexpected token `&>>'

Robert Mark Bram AT DIJONG ~
$

Rob





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