From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: tuhs-bounces@minnie.tuhs.org X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.1 Received: from minnie.tuhs.org (minnie.tuhs.org [45.79.103.53]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id 2ed44d87 for ; Tue, 7 Aug 2018 11:36:53 +0000 (UTC) Received: by minnie.tuhs.org (Postfix, from userid 112) id E71B9A1A22; Tue, 7 Aug 2018 21:36:52 +1000 (AEST) Received: from minnie.tuhs.org (localhost [127.0.0.1]) by minnie.tuhs.org (Postfix) with ESMTP id AB7B3A19D8; Tue, 7 Aug 2018 21:36:39 +1000 (AEST) Received: by minnie.tuhs.org (Postfix, from userid 112) id ABB89A19D8; Tue, 7 Aug 2018 21:36:37 +1000 (AEST) X-Greylist: delayed 452 seconds by postgrey-1.35 at minnie.tuhs.org; Tue, 07 Aug 2018 21:36:36 AEST Received: from avasout04.plus.net (avasout04.plus.net [212.159.14.19]) by minnie.tuhs.org (Postfix) with ESMTPS id 4CB43A19D1 for ; Tue, 7 Aug 2018 21:36:36 +1000 (AEST) Received: from mindy.dunnington.cx ([84.92.27.202]) by smtp with ESMTP id n0Aefyxd8I9T1n0Affwuk5; Tue, 07 Aug 2018 12:29:01 +0100 X-CM-Score: 0.00 X-CNFS-Analysis: v=2.3 cv=Z6vC4kZA c=1 sm=1 tr=0 a=W5Q3TbzFkoGugBkjAUuyvQ==:117 a=W5Q3TbzFkoGugBkjAUuyvQ==:17 a=IkcTkHD0fZMA:10 a=dapMudl6Dx4A:10 a=rgbMlMU938k5epiGFvwA:9 a=QEXdDO2ut3YA:10 Received: from [172.17.2.96] (natpool1.dunnington.cx [84.92.27.201]) by mindy.dunnington.cx (8.12.9/8.12.9/8.12.9.08) with ESMTP id w77BOOb4021329 for ; Tue, 7 Aug 2018 12:24:24 +0100 (BST) To: tuhs@minnie.tuhs.org References: <1533588813.1868321.1465431536.01CE36BC@webmail.messagingengine.com> <20180807065453.jjnsx3cunjug5q3e@h-174-65.A328.priv.bahnhof.se> <20180807080256.lgqaevcah2a7sn2t@h-174-65.A328.priv.bahnhof.se> From: Pete Turnbull Message-ID: Date: Tue, 7 Aug 2018 12:24:20 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20180807080256.lgqaevcah2a7sn2t@h-174-65.A328.priv.bahnhof.se> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 8bit X-CMAE-Envelope: MS4wfLSFU1IgKJCjJ1N7gznogqPilABTIGcz1hVRqIv8CxeZligWzE1g9eOoCauOkCLKr3EOrZmMR5Xjfq62I/I0P8yD+Jue490ddC94PxwGqnGlyYCqspvK /sBYJzvObWvte7ZP4l//a/fmfsSQassc/Hvgcum3Sgd9aRK/iXq/8VbDtAZe6r7j4O8izI0JfIaidA== Subject: Re: [TUHS] Origins of shell prompt suffixes % $ > # X-BeenThere: tuhs@minnie.tuhs.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: The Unix Heritage Society mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: tuhs-bounces@minnie.tuhs.org Sender: "TUHS" On 07/08/2018 09:02, Michael Kjörling wrote: > On 7 Aug 2018 06:54 +0000, from michael@kjorling.se (Michael Kjörling): >> the shell will do The Right Thing (tm) > > I suspect I must stand corrected on this. Turns out that at least GNU > bash 4.4.12(1) seems to not like a `;` at the beginning of the command > line. > > $ /bin/bash --version | head -n1 > GNU bash, version 4.4.12(1)-release (x86_64-pc-linux-gnu) > $ /bin/bash > $ ; true > bash: syntax error near unexpected token `;' > $ echo $? > 2 > $ > > Hopefully other shells are more sane. ksh and sh on an IRIX system don't like it either: $ ; ksh: syntax error: `;' unexpected $ csh and tcsh don't mind. Of course it works in rc itself, which is the point, really, and I wonder how often anyone pasted from one shell into another. All the rc use I've seen did indeed use "; " as the prompt, but that was all at the University of York, starting in 1993. -- Pete Pete Turnbull