From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from minnie.tuhs.org (minnie.tuhs.org [45.79.103.53]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id 706a78ec for ; Sun, 5 Jan 2020 08:31:01 +0000 (UTC) Received: by minnie.tuhs.org (Postfix, from userid 112) id 695539B528; Sun, 5 Jan 2020 18:31:00 +1000 (AEST) Received: from minnie.tuhs.org (localhost [127.0.0.1]) by minnie.tuhs.org (Postfix) with ESMTP id 044B79516C; Sun, 5 Jan 2020 18:30:10 +1000 (AEST) Received: by minnie.tuhs.org (Postfix, from userid 112) id 0D7469516C; Sun, 5 Jan 2020 18:30:08 +1000 (AEST) X-Greylist: delayed 901 seconds by postgrey-1.36 at minnie.tuhs.org; Sun, 05 Jan 2020 18:30:06 AEST Received: from server907.appriver.com (server907a.appriver.com [204.232.250.39]) by minnie.tuhs.org (Postfix) with ESMTPS id 993BA95165 for ; Sun, 5 Jan 2020 18:30:06 +1000 (AEST) X-Note: This Email was scanned by AppRiver SecureTide X-Note-AR-ScanTimeLocal: 01/05/2020 3:14:46 AM X-Note: SecureTide Build: 11/20/2019 4:33:52 PM UTC (2.8.10.0) X-Note: Filtered by 10.246.0.170 X-Note-AR-Scan: None - PIPE Received: by server907.appriver.com (CommuniGate Pro PIPE 6.2.4) with PIPE id 7541007; Sun, 05 Jan 2020 03:14:46 -0500 Received: from [10.246.0.39] (HELO smtp.us.exg7.exghost.com) by server907.appriver.com (CommuniGate Pro SMTP 6.2.4) with ESMTPS id 7541006; Sun, 05 Jan 2020 03:14:45 -0500 Received: from E16DN31A-S1E7.exg7.exghost.local (192.168.244.15) by E16DN31B-S1E7.exg7.exghost.local (192.168.246.19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1913.0; Sun, 5 Jan 2020 03:15:02 -0500 Received: from E16DN31A-S1E7.exg7.exghost.local ([192.168.244.15]) by E16DN31A-S1E7.exg7.exghost.local ([192.168.244.15]) with mapi id 15.01.1913.000; Sun, 5 Jan 2020 03:15:02 -0500 From: Brantley Coile To: "chet.ramey@case.edu" Thread-Topic: [TUHS] sh: cmd | >file Thread-Index: AQHVwqrn4whOnVCfIE+xI4fUfAjs/qfam/kAgAC29gCAAAEfgIAAMYgAgAAdtgCAAA9gAIAAW5eA Date: Sun, 5 Jan 2020 08:15:02 +0000 Message-ID: <749E0F47-FEF9-4424-8A7B-F0B6805306F5@coraid.com> References: <202001040258.0042wuic1359237@mail.cs.dartmouth.edu> <1ingL0-5g6-00@marmaro.de> <202001042106.004L69C1448350@darkstar.fourwinds.com> <026e2abb-fe04-4186-d3b2-0f32109d323a@neophilic.com> <52886e4e-2987-c309-053a-d229e1f33831@case.edu> In-Reply-To: <52886e4e-2987-c309-053a-d229e1f33831@case.edu> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [99.102.142.76] x-rerouted-by-exchange: MIME-Version: 1.0 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-ID: <40BE061A08E9B0449F81AA0BC4A8BB71@fwd7.exghost.com> Content-Transfer-Encoding: quoted-printable X-Note: This Email was scanned by AppRiver SecureTide X-Note-AR-ScanTimeLocal: 01/05/2020 3:14:45 AM X-Note: SecureTide Build: 11/20/2019 4:33:52 PM UTC (2.8.10.0) X-Note: Filtered by 10.246.0.170 X-Policy: GLOBAL X-Primary: GLOBAL@coraid.com X-Note-Sender: X-Virus-Scan: V- X-Note-SnifferID: 0 X-GBUdb-Analysis: 1, 192.168.244.15, Ugly c=0.592804 p=-0.980952 Source White X-Signature-Violations: 0-0-0-3769-c X-Note-419: 15.6224 ms. Fail:0 Chk:1354 of 1354 total X-Note: VSCH-CT/SI: 0-1354/SG:1 1/5/2020 3:14:34 AM X-Note: Spam Tests Failed: X-Country-Path: PRIVATE->PRIVATE-> X-Note-Sending-IP: 10.246.0.39 X-Note-Reverse-DNS: X-Note-Return-Path: brantley@coraid.com X-Note: User Rule Hits: X-Note: Global Rule Hits: G633 G634 G635 G636 G654 G655 G656 G810 X-Note: Encrypt Rule Hits: X-Note: Mail Class: VALID Subject: Re: [TUHS] sh: cmd | >file 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: The Eunuchs Hysterical Society Errors-To: tuhs-bounces@minnie.tuhs.org Sender: "TUHS" V7 indeed did not have "#" as a comment. Programs use the ":" command for t= hat, and was careful of what was in the comment. The ":" command was called= SYSNULL in the source.=20 Later versions of Steve's shell had COMCHAR defined to be a "#" and tes= ted for that symbol in word(), eating up all the characters until it got to= a newline. The version of Seventh Edition I used to carry around and embed= in things had that mod. My original Seventh did not. > On Jan 4, 2020, at 9:44 PM, Chet Ramey wrote: >=20 > On 1/4/20 8:49 PM, Adam Thornton wrote: >> v7 Bourne shell does not appear to treat '#' as a comment. >=20 > It does, when the shell is not interactive and reading input from a scrip= t, > pipe, or input redirection. >=20 > --=20 > ``The lyf so short, the craft so long to lerne.'' - Chaucer > ``Ars longa, vita brevis'' - Hippocrates > Chet Ramey, UTech, CWRU chet@case.edu http://tiswww.cwru.edu/~chet/