From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25292 invoked by alias); 27 Oct 2013 17:46:58 -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: 31911 Received: (qmail 24700 invoked from network); 27 Oct 2013 17:46:51 -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.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:subject:message-id:in-reply-to :references:mime-version:content-type:content-transfer-encoding; bh=DYWbWiOBUYn+oFFDfqGKdqrYE6LgMQsM+XPkbGwLuwA=; b=JjFbagVfNDFneVobqbgAAmqUUnTs+rYS5nSZlVd7KkP4D8U7FO0sLEcZEsyNpzbkOP qVV/U5zhu96brwTlDfFT+ndjTgSEwSMDcExYu7zflIeCQgP1GHvHeSKwQohlpSKksNYD TK2jJE43LuLUXne/4RdCLFT9qaMja8u03uz4waG8DCgCCR+xinA7sGSrCMZTbTrvbesX xKOATnMjCsUS1NdEyywJ/PdijPTl23L2tzU9LYYVn7AMDZ23ah2mhNCmmtS7ik7ZskM0 /sGX8eyDeWOeSjU3ThRkVaZQ/hEj0MdaQyJ7+wFqBMtb6WmqBvVgpskvdZ2SY8DUAy4S LV3w== X-Gm-Message-State: ALoCoQkbJ+Zx9GAV8wFpNLPXLXE67wXlRL95dizegZ2TYOk6IRkfDzoaRYvldvD580esjRbyW7gH X-Received: by 10.180.160.147 with SMTP id xk19mr6035035wib.30.1382896008664; Sun, 27 Oct 2013 10:46:48 -0700 (PDT) X-ProxyUser-IP: 86.6.157.246 Date: Sun, 27 Oct 2013 17:46:45 +0000 From: Peter Stephenson To: Zsh Hackers' List Subject: Re: multios doesn't work with 2>&1 Message-ID: <20131027174645.6934d78d@pws-pc.ntlworld.com> In-Reply-To: <131027100137.ZM4100@torch.brasslantern.com> References: <20131027145917.GA5509@localhost.localdomain> <131027100137.ZM4100@torch.brasslantern.com> X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.7; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Bart Schaefer wrote: > If I back out workers/20666 (Jan 2005), then this example works again. (This is really a zsh-workers thing, too, so I've moved it.) Crikey, I'd worked out it was already broken in 2007 and I thought I was doing well... Playing around here, the other observation I have before looking at the thread you're talking about is that echo foo 2>&1 >/dev/null > >(sed 's/foo/bar/') echo foo >/dev/null 2>&1 > >(sed 's/foo/bar/') echo foo >/dev/null > >(sed 's/foo/bar/') 2>&1 all work as expected. This seems inconsistent --- the synchronous / asynchronous and run-in-shell / fork behaviour is clearly different in that case, but it's not clear that should affect redirection. (I'd also worked out that echo foo >/dev/null 2>&1 | sed 's/foo/bar/' gives a different bad effect, namely you get the output you want but the shell hangs, but that maybe another natural consequence of the thread I haven't read yet.) pws