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.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 29168 invoked from network); 16 Dec 2020 04:02:39 -0000 Received: from minnie.tuhs.org (45.79.103.53) by inbox.vuxu.org with ESMTPUTF8; 16 Dec 2020 04:02:39 -0000 Received: by minnie.tuhs.org (Postfix, from userid 112) id EF6159C868; Wed, 16 Dec 2020 14:02:34 +1000 (AEST) Received: from minnie.tuhs.org (localhost [127.0.0.1]) by minnie.tuhs.org (Postfix) with ESMTP id 95FA99C7BB; Wed, 16 Dec 2020 14:02:00 +1000 (AEST) Authentication-Results: minnie.tuhs.org; dkim=pass (2048-bit key; unprotected) header.d=dartmouth.edu header.i=@dartmouth.edu header.b="RgfYiqj1"; dkim-atps=neutral Received: by minnie.tuhs.org (Postfix, from userid 112) id C0EAB9C7BB; Wed, 16 Dec 2020 14:01:56 +1000 (AEST) Received: from mail-wr1-f51.google.com (mail-wr1-f51.google.com [209.85.221.51]) by minnie.tuhs.org (Postfix) with ESMTPS id A61719C7B5 for ; Wed, 16 Dec 2020 14:01:55 +1000 (AEST) Received: by mail-wr1-f51.google.com with SMTP id r7so21824984wrc.5 for ; Tue, 15 Dec 2020 20:01:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dartmouth.edu; s=google1; h=mime-version:from:date:message-id:subject:to; bh=wcvuYewfijawH6/MdHquFVRJw5BOWdjfdQH6zq+UHck=; b=RgfYiqj1jiRaHBQSJrGs6Bsty7BgZaPbj7tHVj1nNe+iNkR7eWVX0weqJKYDoJUgNQ GFODtwZQ/yzdYR/hj2sO24xm3Zempkp0QalrzfXZF9kIdFQzP1T63aKJoiel11/hEIOR 2dW06HVzuRUqqja8sIq35bl9iy6I59POQtzsdbjHp6vwB/Qi2PeAzZc3ZNeEJ2gKFHE2 mseqAWSTY81CzTr+iQv03Wy+9xGXLLdP2YjLfLiUy7f/mQJ+DNkBsn/TYAnJf/AERjWi 9e2NcekKIQ8Ol81ClxLjEjwLKMrLDuqdcy0zgxx8/l4y7ivPzJhbbrVSssZdCrbPXGh7 CcLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=wcvuYewfijawH6/MdHquFVRJw5BOWdjfdQH6zq+UHck=; b=VtkOM1dmvsBdExzhWiJMFJago/cNy0/ngGyIKt9lDS9ayI1fVI8ePVgSEAQV3ITTwk l0g4S1nnZvMUpXC+J16/UpQWeDA070f/mXvJpPoLumjaZzC4l5aRICMqzmaqRgufslRJ 0yLgWKDOMYYctQGHNVpmiBl9bN2nzPV6GuKLImHs1MOBBZgrDIJSmfCqpZzT/48XXbxx PN245fC4gFF/ZWbhZgRXmoBb1MCskfLH0pTBL9G7YJ8KbnkxfCoApd8r16rCa6Sj49/R YgW/0NxpntQy75gez+yj8C1tIylJZCc/cgTcUcQ9dcnZGuRUbu+eUJgV4awLjwnWhcZq 36jQ== X-Gm-Message-State: AOAM530BKDZYgtsCcSLBjr4+QRPz3AOalVn+wkt0QEFSRRdD5beJ2Fvv SdlUUIQh7LOy4+5qRtXZLTlx7aY2Iznvr/pBgrxgy7eH6HMtHw== X-Google-Smtp-Source: ABdhPJyP1D9MKuiiq4AnoIWVSoPIiozeuU9EqNJRyiGPicHCJn/iHNP9fHJ5n3k9kGpm2gERq7o9xVVLZ7h7qTPiKTQ= X-Received: by 2002:a5d:69c2:: with SMTP id s2mr5027732wrw.36.1608091314140; Tue, 15 Dec 2020 20:01:54 -0800 (PST) MIME-Version: 1.0 From: M Douglas McIlroy Date: Tue, 15 Dec 2020 23:01:39 -0500 Message-ID: To: tuhs@tuhs.org Content-Type: text/plain; charset="UTF-8" Subject: [TUHS] sh and goto 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: , Errors-To: tuhs-bounces@minnie.tuhs.org Sender: "TUHS" > Bourne commented on the omission of goto from the Bourne shell ... > Was this decision contentious at all? Was there a specific reason for goto's exclusion in the Bourne shell? I don't believe I ever used a shell goto, because I knew how it worked--maybe even spinning a tape drive, not too different from running a loop on the IBM CPC. There you stood in front of the program "read head" (a card reader), grabbed the "used" cards at the bottom and put them back in the top feed. Voila, a program loop. The shell goto differed in that it returned to the beginning by running the tape backward rather than going around a physically looped path. And you didn't have to spin the tape by hand. It also reminds me of George Stibitz's patent on the goto. The idea there was to stop reading this tape and read that one instead. The system library was a bank of tape readers with programs at the ready on tape loops . (This was in the late 1940s. I saw the machine but never used it. I did have hands-on experience with CPCcards.) Doug