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 autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 1301 invoked from network); 1 Jan 2023 11:28:25 -0000 Received: from minnie.tuhs.org (50.116.15.146) by inbox.vuxu.org with ESMTPUTF8; 1 Jan 2023 11:28:25 -0000 Received: from minnie.tuhs.org (localhost [IPv6:::1]) by minnie.tuhs.org (Postfix) with ESMTP id 273834244E; Sun, 1 Jan 2023 21:28:19 +1000 (AEST) Received: from freefriends.org (freefriends.org [96.88.95.60]) by minnie.tuhs.org (Postfix) with ESMTPS id 1C9EB4244B for ; Sun, 1 Jan 2023 21:28:16 +1000 (AEST) X-Envelope-From: arnold@skeeve.com Received: from freefriends.org (freefriends.org [96.88.95.60]) by freefriends.org (8.14.7/8.14.7) with ESMTP id 301BS9wC015649 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 1 Jan 2023 04:28:09 -0700 Received: (from arnold@localhost) by freefriends.org (8.14.7/8.14.7/Submit) id 301BS8D2015648; Sun, 1 Jan 2023 04:28:08 -0700 From: arnold@skeeve.com Message-Id: <202301011128.301BS8D2015648@freefriends.org> X-Authentication-Warning: frenzy.freefriends.org: arnold set sender to arnold@skeeve.com using -f Date: Sun, 01 Jan 2023 04:28:08 -0700 To: tuhs@tuhs.org, pnr@planet.nl, chet.ramey@case.edu, arnold@skeeve.com References: <52FB6638-AEFF-4A4F-8C2E-32089D577BA0@planet.nl> <464819f0-d2f6-2a60-6481-a194f4428b4d@case.edu> <202301011044.301Aib7T009476@freefriends.org> In-Reply-To: <202301011044.301Aib7T009476@freefriends.org> User-Agent: Heirloom mailx 12.5 7/5/10 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID-Hash: MACGGKODT6Q2F3ARH577UVDZZHW4LQDQ X-Message-ID-Hash: MACGGKODT6Q2F3ARH577UVDZZHW4LQDQ X-MailFrom: arnold@skeeve.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-tuhs.tuhs.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.6b1 Precedence: list Subject: [TUHS] Re: A few comments on porting the Bourne shell List-Id: The Unix Heritage Society mailing list Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: I wrote: > I did do stuff with the shell back in the 80s: I also recall that there was some USENET discussion in which Rob Pike described how the 8th edition shell changed the search order to have functions come before non-special built-ins, with the addition of "builtin" and "whatis" commands. Rob was kind enough to send me the sh.1 man page from the 8th edition (which I still have somewhere), and I made this change in the S5r2 shell. I don't know if I posted diffs or not. In any case, as part of implementing whatis, I wrote a pretty printer for shell functions. (Getting 'elif' right needed some extra code.) I offered it to Rob, who politely declined, indicating that he had his own. Ah, those were the days... :-) Arnold