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=-1.0 required=5.0 tests=MAILING_LIST_MULTI, NICE_REPLY_A,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 26597 invoked from network); 1 Dec 2020 15:48:08 -0000 Received: from minnie.tuhs.org (45.79.103.53) by inbox.vuxu.org with ESMTPUTF8; 1 Dec 2020 15:48:08 -0000 Received: by minnie.tuhs.org (Postfix, from userid 112) id 296399C75B; Wed, 2 Dec 2020 01:44:17 +1000 (AEST) Received: from minnie.tuhs.org (localhost [127.0.0.1]) by minnie.tuhs.org (Postfix) with ESMTP id 8DD689C208; Wed, 2 Dec 2020 01:43:58 +1000 (AEST) Received: by minnie.tuhs.org (Postfix, from userid 112) id 8BA899C208; Wed, 2 Dec 2020 01:43:56 +1000 (AEST) X-Greylist: delayed 516 seconds by postgrey-1.36 at minnie.tuhs.org; Wed, 02 Dec 2020 01:43:56 AEST Received: from kvm5.telegraphics.com.au (kvm5.telegraphics.com.au [98.124.60.144]) by minnie.tuhs.org (Postfix) with ESMTP id 0FAB49C205 for ; Wed, 2 Dec 2020 01:43:56 +1000 (AEST) Received: from [10.210.249.17] (unknown [10.210.249.17]) by kvm5.telegraphics.com.au (Postfix) with ESMTP id 211DC295CE; Tue, 1 Dec 2020 10:35:19 -0500 (EST) To: Jim Capp , jason-tuhs@shalott.net References: <15511090.6330.1606835354160.JavaMail.root@zimbraanteil> From: Toby Thain Message-ID: <6f7f85f6-23f9-a39f-7f1d-37d8c666822a@telegraphics.com.au> Date: Tue, 1 Dec 2020 10:35:18 -0500 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:78.0) Gecko/20100101 Thunderbird/78.5.0 MIME-Version: 1.0 In-Reply-To: <15511090.6330.1606835354160.JavaMail.root@zimbraanteil> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Subject: Re: [TUHS] The UNIX Command Language (1976) 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@minnie.tuhs.org Errors-To: tuhs-bounces@minnie.tuhs.org Sender: "TUHS" On 2020-12-01 10:09 a.m., Jim Capp wrote: > Is it possible the elimination of the GOTO statement in the Bourne Shell > was related to a Letter to the Editor in Communications of the ACM, > March 1968: > "Go To Statement Considered Harmful," by E. Dijkstra. > Broadly connected to the rise of Structured Programming -- which we take fully for granted today. The same movement, and the popularity of Pascal, which was very competitive with C as an applications language, would have motivated the inclusion of what were at the time considered "high level" control structures, in C: do/while/for and block structuring. --Toby > Jim > > > ------------------------------------------------------------------------ > *From: *jason-tuhs@shalott.net > *To: *tuhs@minnie.tuhs.org > *Sent: *Monday, November 30, 2020 10:59:18 PM > *Subject: *Re: [TUHS] The UNIX Command Language (1976) > > >> "The UNIX Command Language is the first-ever paper published on the Unix >> shell. It was written by Ken Thompson in 1976." >> >> https://github.com/susam/tucl > > Thanks for that. > > This reminded me that the Thompson shell used goto for flow control, which > I had forgotten. > > Bourne commented on the omission of goto from the Bourne shell, "I > eliminated goto in favour of flow control primitives like if and for. > This was also considered rather radical departure from the existing > practice." > > Was this decision contentious at all?  Was there a specific reason for > goto's exclusion in the Bourne shell? > > > Thanks. > > >   -Jason