From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,NICE_REPLY_A,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 10793 invoked from network); 14 Feb 2021 20:34:08 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 14 Feb 2021 20:34:08 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1613334848; b=liPsihvLdSMDg7eno5NN8ro089Q5y4C9hqwAJntiOY0OirFKdriaH4Aqz/gF0/Q4KpAUxfE9cl MJaehHzaWhjw5JPk3IKoKkvjM0hI8I5WLD7fZoM9GIN4DQiZ+l1KMZOSePYqgC7smLj0n3Li+f n1cAoY29nGqgKwTdX5DhSbDXVSLAV7mLbarJX9qHiC5xZeqIMKdY/tujyCypfNbU2SQpo3f3Io htyJ6f+ibKE/+ctnwGExmvs4cH2oEa88ibm27gNgEQcC2Y1S6S94WgwVVeIHZeQIdmBtl7ACRf tiXm6rmxQjuoT4Z+6/M5osfwfpMf/CbFvYZcMmrR4p/Aug==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mta02.eastlink.ca) smtp.remote-ip=24.224.136.13; dmarc=none header.from=eastlink.ca; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1613334848; bh=YeJS5XWHefueGJfJ2Ik8ErU6dUcbIZDKGWkswotCji8=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:In-Reply-To: MIME-Version:Date:Message-ID:From:References:To:Subject:DKIM-Signature; b=pXrqidEwFIo3v06gxjRuZf2LR3fdCKaRLeQTSrUQfgiyLdmXtq7LgsHLOq3iI5yPYspDT9B7LH AT8Z9vQgjGoyhRyu2ncoAPTdjlskwD/qtZvLRmbLEyDqX5pnI5sYkskMvx9t3mZBDHH2K3BKFa d8LWrPlD057G46t1PfBcgl6lj1qsTzce0E4QWiSM8wwKudHyUkkoLx3LjbHdBsZwxWLgJUiZwX PogCAvpMZesz7n+CeQftF+SsG4WEqUo40d99wJUN3Ov8tUPzNuAkSj1SXw7Nr5QvwS3/TCF3/Q q0mJ7wdncwuga47psLufBTP47l0Ehs5yE9ATcslvp42eeQ==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20200801; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-transfer-encoding: Content-type:In-reply-to:MIME-version:Date:Message-id:From:References:To: Subject:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=df+PnsF3hzBc6LLGzKqdrHWRTb7GkFE5BFWKLPBqQ34=; b=mqACD5NmAo6rG6y5oczujMejYL Cfr1Wz4pSNSJ92CJIkrme7dj9XSx6F7ct4OsZuJlj9N07mIRJ7kIAYtyVRP47H8WmF2y/sJKiXzyB fcr45p6sTSvmksfduj5zsueXLOdlOyfasiImFaeJ0TB2cxPx4ksoHWPqdE+jjb2tIzH/TV97eJzRe CqJ3xhbm2g55s+hagtzGSDJm+KRT/QaTF9NKkmV89VyLbp43+lWNqFbcXdGXjvEqgZDrcW8OAoL/U A1CsX8+k6aWPzkqKjY1buGxUw+CD8HQGLzV0AmHd+eHK9uge+nRa192FxXi9zIGRzWvZwwqPyvCKj v7xSFGYA==; Received: from authenticated user by zero.zsh.org with local id 1lBO5l-0003zP-Mq; Sun, 14 Feb 2021 20:34:05 +0000 Authentication-Results: zsh.org; iprev=pass (mta02.eastlink.ca) smtp.remote-ip=24.224.136.13; dmarc=none header.from=eastlink.ca; arc=none Received: from mta02.eastlink.ca ([24.224.136.13]:50894) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES128-GCM-SHA256:128) id 1lBO5K-0003cN-UE; Sun, 14 Feb 2021 20:33:39 +0000 Received: from csp02.eastlink.ca ([71.7.199.167]) by mta02.eastlink.ca (Oracle Communications Messaging Server 8.0.2.2.20180531 64bit (built May 31 2018)) with ESMTPS id <0QOJ001SMAKJTI60@mta02.eastlink.ca> for zsh-users@zsh.org; Sun, 14 Feb 2021 16:33:36 -0400 (AST) Received: from [192.168.0.3] ([24.207.90.194]) by Eastlink with ESMTP id BO5HliNhXnkRCBO5IlcgXt; Sun, 14 Feb 2021 16:33:36 -0400 X-Authority-Analysis: v=2.4 cv=B+J8bMhM c=1 sm=1 tr=0 ts=60298920 a=zv49KfEsxEDzuN5AGO7r0Q==:117 a=zv49KfEsxEDzuN5AGO7r0Q==:17 a=IkcTkHD0fZMA:10 a=YR4_K0clAAAA:8 a=CCpqsmhAAAAA:8 a=5SN6tuyqSnqgkIg-33sA:9 a=QEXdDO2ut3YA:10 a=66zSKFQpzMcA:10 a=waMAY2KAzxQUlx2gRwsv:22 a=ul9cdbp4aOFLsgKbc677:22 X-Vade-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrieehgddufeelucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecugfetuffvnffkpffmpdfqfgfvnecuuegrihhlohhuthemuceftddtnecunecujfgurhepuffvfhfhkffffgggjggtgfesthekredttdefjeenucfhrhhomheptfgrhicutehnughrvgifshcuoehrrgihrghnughrvgifshesvggrshhtlhhinhhkrdgtrgeqnecuggftrfgrthhtvghrnhepheejjeeftdejtdegkefhfeegffekteetueefjedtgeffgeefledtgefhteejgeeunecuffhomhgrihhnpehsohhurhgtvgifrghrvgdrohhrghenucfkphepvdegrddvtdejrdeltddrudelgeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpedvgedrvddtjedrledtrdduleegpdhhvghloheplgduledvrdduieekrddtrdefngdpmhgrihhlfhhrohhmpehrrgihrghnughrvgifshesvggrshhtlhhinhhkrdgtrgdprhgtphhtthhopeiishhhqdhushgvrhhsseiishhhrdhorhhgpdhgvghtqdgkihhprfgrshhsfigupehtrhhuvg X-Vade-Score: 0 X-Vade-State: 0 X-EL-IP-NOAUTH: 24.207.90.194 Subject: Re: detect pipe To: zsh-users@zsh.org References: <20210128102816.GB578422@zira.vinc17.org> <560cef52-aee7-352a-2ba3-25826fe54136@eastlink.ca> <14ce37b2-35ca-6002-474a-7de5d6626a66@eastlink.ca> <05c3d2ba-6a00-9480-e2a8-685432e2442c@eastlink.ca> <20210214173138.GA2298446@zira.vinc17.org> From: Ray Andrews Message-id: Date: Sun, 14 Feb 2021 12:33:35 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.0 MIME-version: 1.0 In-reply-to: Content-type: text/plain; charset=utf-8; format=flowed Content-transfer-encoding: 8bit Content-language: en-US X-Seq: 26514 Archived-At: X-Loop: zsh-users@zsh.org Errors-To: zsh-users-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-users-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: Archived-At: On 2021-02-14 11:33 a.m., Bart Schaefer wrote: > On Sun, Feb 14, 2021 at 9:31 AM Vincent Lefevre wrote: >> Closing stdin is a bad idea, as this can break stdout redirection, >> and this may be out of control of the commands. See >> >> https://sourceware.org/bugzilla/show_bug.cgi?id=682 > IMO that's just silly. If stdin/stdout were never supposed to be > closed, why has the standard shell had <&- and >&- for its entire > existence? Why wouldn't those be syntax errors when a file descriptor > number is not provided if you're never supposed to use them? > If it is closed, where does input go?  Queued up or vanish?