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=0.3 required=5.0 tests=MAILING_LIST_MULTI, RCVD_ILLEGAL_IP,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.4 Received: (qmail 24519 invoked from network); 7 Apr 2022 21:35:19 -0000 Received: from minnie.tuhs.org (45.79.103.53) by inbox.vuxu.org with ESMTPUTF8; 7 Apr 2022 21:35:19 -0000 Received: by minnie.tuhs.org (Postfix, from userid 112) id 506849D6D6; Fri, 8 Apr 2022 07:35:16 +1000 (AEST) Received: from minnie.tuhs.org (localhost [127.0.0.1]) by minnie.tuhs.org (Postfix) with ESMTP id 4F7669D6B4; Fri, 8 Apr 2022 07:32:44 +1000 (AEST) Received: by minnie.tuhs.org (Postfix, from userid 112) id 0E1BC9D6B4; Fri, 8 Apr 2022 07:32:39 +1000 (AEST) Received: from sdaoden.eu (sdaoden.eu [217.144.132.164]) by minnie.tuhs.org (Postfix) with ESMTPS id 2577E9D6B1 for ; Fri, 8 Apr 2022 07:32:38 +1000 (AEST) Received: from kent.sdaoden.eu (kent.sdaoden.eu [192.0.2.2]) by sdaoden.eu (Postfix) with ESMTPS id 5BD9B16059; Thu, 7 Apr 2022 23:32:35 +0200 (CEST) Received: by kent.sdaoden.eu (Postfix, from userid 1000) id 5E1526ECE6; Thu, 7 Apr 2022 23:32:34 +0200 (CEST) Date: Thu, 07 Apr 2022 23:32:34 +0200 Author: Steffen Nurpmeso From: Steffen Nurpmeso To: Douglas McIlroy Message-ID: <20220407213234.7sGk5%steffen@sdaoden.eu> In-Reply-To: References: Mail-Followup-To: Douglas McIlroy , TUHS main list User-Agent: s-nail v14.9.24-233-gcbe5418d3b OpenPGP: id=EE19E1C1F2F7054F8D3954D8308964B51883A0DD; url=https://ftp.sdaoden.eu/steffen.asc; preference=signencrypt BlahBlahBlah: Any stupid boy can crush a beetle. But all the professors in the world can make no bugs. Subject: Re: [TUHS] Why does shell write to stderr? X-BeenThere: tuhs@minnie.tuhs.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: The Unix Heritage Society mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: TUHS main list Errors-To: tuhs-bounces@minnie.tuhs.org Sender: "TUHS" Douglas McIlroy wrote in : |How would you wish to interact with | /bin/bash >file While the POSIX standard defines an interactive shell as one with STDIN and STDERR being a terminal, i think the NetBSD shell did not until not too long (< half a decade?) ago, and the mailer you were using for a long time does not to this day. (Unfortunately.) APPLICATION USAGE Standard input and standard error are the files that determine whether a shell is interactive when -i is not specified. For example: sh > file and: sh 2> file create interactive and non-interactive shells, respectively. Although both accept terminal input, the results of error conditions are different, as described in Section 2.8.1 (on page 2363); in the second example a redirection error encountered by a special built-in utility aborts the shell. --steffen | |Der Kragenbaer, The moon bear, |der holt sich munter he cheerfully and one by one |einen nach dem anderen runter wa.ks himself off |(By Robert Gernhardt)