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 3207 invoked from network); 31 Dec 2022 04:40:58 -0000 Received: from minnie.tuhs.org (50.116.15.146) by inbox.vuxu.org with ESMTPUTF8; 31 Dec 2022 04:40:58 -0000 Received: from minnie.tuhs.org (localhost [IPv6:::1]) by minnie.tuhs.org (Postfix) with ESMTP id 60E37423AB; Sat, 31 Dec 2022 14:40:53 +1000 (AEST) Received: from mcvoy.com (mcvoy.com [192.169.23.250]) by minnie.tuhs.org (Postfix) with ESMTPS id 23CC742373 for ; Sat, 31 Dec 2022 14:40:50 +1000 (AEST) Received: by mcvoy.com (Postfix, from userid 3546) id 6B2F535E919; Fri, 30 Dec 2022 20:40:49 -0800 (PST) Date: Fri, 30 Dec 2022 20:40:49 -0800 From: Larry McVoy To: Bakul Shah Message-ID: <20221231044049.GI5825@mcvoy.com> References: <52FB6638-AEFF-4A4F-8C2E-32089D577BA0@planet.nl> <464819f0-d2f6-2a60-6481-a194f4428b4d@case.edu> <20221230200246.GW5825@mcvoy.com> <88f83b4c-b3f9-ed87-b2fa-560fb369742a@makerlisp.com> <20221231035931.GG5825@mcvoy.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) Message-ID-Hash: LUEYJPTMB6XK7HDB5KSBB4HEOXJFKBVC X-Message-ID-Hash: LUEYJPTMB6XK7HDB5KSBB4HEOXJFKBVC X-MailFrom: lm@mcvoy.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 CC: tuhs@tuhs.org 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: On Fri, Dec 30, 2022 at 08:18:06PM -0800, Bakul Shah wrote: > On Dec 30, 2022, at 7:59 PM, Larry McVoy wrote: > > > > For a login shell, bash is my shell of choice. It's bloated but I'm > > typing this on a 5 year old Lenova X1 Carbon with 16GB of memory and > > 4 cores and it's fine. It was fine a 133mhz Pentium. > > I switched to zsh in 1993-94 when I found out it had sh compatible > syntax but also had some useful features from csh (bang commands, > a{b,c} expansion, aliases etc.). This should probably move to COFF (which unlike many other lists I've been on, has critical mass in the "go over there" list). You are the 2nd to say zsh is your login shell. I tried it for a while, my progression was ${I dunno} to csh, actually used Bourne shell as a login shell for a while around 1985 or so, all of my login scripts, other shell scripts, were Bourne shell, I think zsh was next, then sighed in relief with the original ksh release that went out, and when bash came around with portability to everywhere, it has been bash. ksh93 was interesting but bash was good enough and clearly open source so... For script portability, pure Bourne shell has been the win for at least 40 years. I suspect my kids and their kids will be writing Steve's syntax, that's a legacy. For general purpose scripting, I've moved on. I loved Perl4. It's a kitchen sink language but it so clearly had roots in the Bourne shell, in awk, in sed. It was trying to be all of those things in one language and it mostly succeeded. In the 40mhz SPARC days I actually advocated for rewriting a ton of /usr/bin on SunOS in perl4 because it was so easy and far more maintainable than the C versions. These days perl is weird, the kids seem to like Python, I hate Python because there is no printf in the base language. How is that a thing? But people like it. -- --- Larry McVoy Retired to fishing http://www.mcvoy.com/lm/boat