From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5721 invoked by alias); 20 Nov 2014 20:28:54 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 33727 Received: (qmail 26676 invoked from network); 20 Nov 2014 20:28:52 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=SUMgtxxZgpisEILB4BV8cPT3qHJiF00vpWP7mF47xkA=; b=iuXg8z31elCB4T9MBE2ux4jS5MUwIT3TFWV4WcAQ5KwIgJghT99e7eYrjsJX6CxYwr 3gqFIn7S6hJNdznMzTNYKRbpcMRrJsa3MJ0YxdkXXMd8Sw6Lap6/ItvgJ3MDP+dv+9PN RBzYFnDuvL87HqNtR/MwQY/3VFXfF0DvkAreuXbKD3Zam4k1gMFVa16OIVoy5F6p1ICP YAOP1A4demR6fr8FEaf86egZjPk9dV96irjvkQySPf5R0hIwPiLRQEcynTi1QB6OeMB4 B3ZNJvpyQi7lS3xZHiq6sCj3Suu5Q7tKwCmOD1wpo5vSn3R945rSa4WBiI9ZYAbSgqjo B11A== X-Received: by 10.152.8.82 with SMTP id p18mr226593laa.25.1416515328127; Thu, 20 Nov 2014 12:28:48 -0800 (PST) Date: Thu, 20 Nov 2014 21:28:54 +0100 From: Pierre Neidhardt To: Stephane Chazelas Cc: zsh-workers@zsh.org Subject: Re: Redirection bug for stderr? Message-ID: <20141120202854.GA5798@gmail.com> References: <20141120104440.GA23262@gmail.com> <20141120160816.0d259011@pwslap01u.europe.root.pri> <20141120165859.GA10542@chaz.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20141120165859.GA10542@chaz.gmail.com> X-Info: Simplicity is the ultimate sophistication. User-Agent: Mutt/1.5.23 (2014-03-12) OK, thanks for the explanation! :) On 14-11-20 16:58:59, Stephane Chazelas wrote: > 2014-11-20 16:08:16 +0000, Peter Stephenson: > [...] > > % { print output; print error >&2 } 2>&1 >foo.out | sed 's/error/erratic' > [...] > > So if you want to turn this effect off, you need > > to unset the option `MULTIOS'. > > > > Or: > > > % { print output; print error >&2 } 2>&1 >&- >foo.out | sed 's/error/erratic/' > > > (note the typo above (missing / in s/foo/bar). > > -- > Stephane > -- Pierre Neidhardt Ma Bell is a mean mother!