From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8569 invoked by alias); 23 Jul 2015 00:32:32 -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: 35861 Received: (qmail 8009 invoked from network); 23 Jul 2015 00:32:30 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) 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,RCVD_IN_MSPIKE_H2 autolearn=ham autolearn_force=no version=3.4.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=fs/pIr9VoV1pAAF8wQ587QO2gbCe0l1uTzFTT33F7Qk=; b=sjQ0zI2n/81AFQ2Ht7GCcyT7KgHr+SdvazGm86hgpg/wt1TVru7S9QZg8husY3AcZ0 OnriXZiKnWmWjGRbVDDntlhjd83sajge9CQfQ5hndNwIb6ZfKskQt8pnvBhW5wxGKHmi Y6/HD9sXSPtvaaTNB7B0vTvA6bi48Cscihf3xEFJ8C35qMN7PfYJ6WR5jMiqjaneoHKE 75qkwSVCCkHSkQpASyjNPWV/hLpjvH8WHXLuiWmcCZDE/KLnrYJkv0iaCq+9uoM9HbUS i8+UBHPFgpuPflCrYRB6B6E2Xt8jHSKugJU0NLc70R2K+z7wQfttCdFRuRzp0RaTrF5M fsHg== X-Received: by 10.55.17.195 with SMTP id 64mr8075550qkr.43.1437611545239; Wed, 22 Jul 2015 17:32:25 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20150722105829.43856c6d@pwslap01u.europe.root.pri> References: <20150722100944.0d38f261@pwslap01u.europe.root.pri> <20150722105829.43856c6d@pwslap01u.europe.root.pri> From: Petros Aggelatos Date: Wed, 22 Jul 2015 17:32:05 -0700 Message-ID: Subject: Re: bug with named pipes and process substitution To: zsh-workers@zsh.org Content-Type: text/plain; charset=UTF-8 Hi, Thanks a lot for the quick resolution, I tested the patch and it works for me too. However, the test added works fine even on the master branch without the patch (I included the mkpipe -> mkfifo change). Not sure if I'm doing something wrong but I'm sending the test I used to find the broken commit in case there is a problem with the current test: diff --git a/Test/D03procsubst.ztst b/Test/D03procsubst.ztst index 7b87589..757ac49 100644 --- a/Test/D03procsubst.ztst +++ b/Test/D03procsubst.ztst @@ -126,3 +126,15 @@ eval 'foo here is some output)' 0:full alias expanded when substitution starts in alias >here is some output + + if ! (mkfifo test_pipe >/dev/null 2>&1); then + ZTST_skip="mkfifo not available" + else + echo 1 | tee >(cat > test_pipe) | cat - test_pipe > /dev/null & + sleep 1 + if [ ! -d /proc/$! ]; then + echo success + fi + fi +0:proc subst fd in forked subshell closed in parent +>success