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=-0.8 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,HTML_MESSAGE,MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 30482 invoked from network); 4 Jan 2023 01:59:51 -0000 Received: from minnie.tuhs.org (50.116.15.146) by inbox.vuxu.org with ESMTPUTF8; 4 Jan 2023 01:59:51 -0000 Received: from minnie.tuhs.org (localhost [IPv6:::1]) by minnie.tuhs.org (Postfix) with ESMTP id 2D6A942542; Wed, 4 Jan 2023 11:59:30 +1000 (AEST) Received: from mail-pf1-f178.google.com (mail-pf1-f178.google.com [209.85.210.178]) by minnie.tuhs.org (Postfix) with ESMTPS id 1426D42541 for ; Wed, 4 Jan 2023 11:59:25 +1000 (AEST) Received: by mail-pf1-f178.google.com with SMTP id 6so19123423pfz.4 for ; Tue, 03 Jan 2023 17:59:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:in-reply-to:to:references:date:subject:mime-version:from :from:to:cc:subject:date:message-id:reply-to; bh=lFYtkL/I0Fx7pS8tq+MPpcK7DJgdaCXNh73PIRjkgQ4=; b=ZYZraXolgVHMfQZdxFd7if4Zurnw0VSR220RZkUUAcf9/aYQkmTMka0UgyjRvf7lnV IcVKh+j7A9FqbSFM1eYFRTTdMmWErgINPuxuvVkX0xdscIM6GKRgF47SgPDqBOC2JDcV W2P4wJdlAOxZ2jDqoj574azRHYoO6yJ521lN+MnueVmZtm1VwEIeI0VZhHkKeRyjJPRB J5DuU4kkVNIGOZHyW7ozqlnSoeEto3+0Aubjrvy6HfwqSVoZQ1nbdCETVo+bpHdzXuvI rlUi3D3L4PTjf5k5Z5lzDB2Xj6o6dfx7GMpZtfiZNEXQ78XoL3xO/qGoqIXvFRL+Lcv5 z5ig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=message-id:in-reply-to:to:references:date:subject:mime-version:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=lFYtkL/I0Fx7pS8tq+MPpcK7DJgdaCXNh73PIRjkgQ4=; b=eDrtiUyjI/T2QJr7PzviBwMiHJ1gRmGnUzpKXPcqO141rqC0mhrZthptqhgl+TMhtg fW/MYbqSCnUaCqR/IS5kboLb3lhDYSJ9BfMOcBsmcpdohiKcwGAcgNsnWFmsf8MLw5t3 c2Uxh358C7dPM1h/yGMddZmBoRUs+U3Ok8CdrV57xNIWWwialBA6l//BASt0NAOfaKA+ KXEqj880hZ0ah6FuH6f6hd30d35VQfxZWLK7cGUq96Ks/zJgLwETLUX/vvohbOQCYJrx axeGT8fM0QtDRs8EGDL6f5gyfjhParaf4Pizl5c8IdeLPFKaJSlE35EWhUgeEiPhC/37 ocYQ== X-Gm-Message-State: AFqh2kr2+4fFpEAbeMC76uM+U7t+x+/W38aB1ISANN82YnVKo6PwAy8h rMdw1HjnC2UxKF+Mfy4RgSRGwUrCe7c= X-Google-Smtp-Source: AMrXdXs2lefB762Fd/AHStuBivtz8zshQErZI+lEbMgx8h9F0p+iFv4oncd6ywszFNOnaHlgcrnchA== X-Received: by 2002:aa7:9602:0:b0:582:d07e:b387 with SMTP id q2-20020aa79602000000b00582d07eb387mr2865138pfg.12.1672797504506; Tue, 03 Jan 2023 17:58:24 -0800 (PST) Received: from smtpclient.apple (ip98-165-124-124.ph.ph.cox.net. [98.165.124.124]) by smtp.gmail.com with ESMTPSA id w4-20020aa79544000000b0058173c4b3d1sm13652834pfq.80.2023.01.03.17.58.23 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 03 Jan 2023 17:58:23 -0800 (PST) From: Adam Thornton Content-Type: multipart/alternative; boundary="Apple-Mail=_DD8E9A2B-F03E-4175-A732-F23B9F9B1616" Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.300.101.1.3\)) Date: Tue, 3 Jan 2023 18:58:12 -0700 References: <20230103201900.oR1Qq%steffen@sdaoden.eu> <325DF7E4-37BE-4432-9447-0B392B57DC69@iitbombay.org> To: Bakul Shah , TUHS main list In-Reply-To: <325DF7E4-37BE-4432-9447-0B392B57DC69@iitbombay.org> Message-Id: <42B6E514-D210-49D3-A103-351F94563852@gmail.com> X-Mailer: Apple Mail (2.3731.300.101.1.3) Message-ID-Hash: PLHS56DU3UUTS43DCX7Q6FIUZO7D3AGC X-Message-ID-Hash: PLHS56DU3UUTS43DCX7Q6FIUZO7D3AGC X-MailFrom: athornton@gmail.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: --Apple-Mail=_DD8E9A2B-F03E-4175-A732-F23B9F9B1616 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii > On Jan 3, 2023, at 6:37 PM, Bakul Shah wrote: >=20 > I write shell one liners all the time[1]. >=20 > Go is just too verbose for scripting. I use it for larger programs = but typically these don't start out as shell scripts. >=20 > [1] In fact I use find (or zsh's **/*), xargs, grep, sort, uniq, = field picking often enough that I wish they were built-in a shell but I = haven't figured out a simple syntax for it as yet. I was 50 years old before I learned that sort has a -u, so I could have = saved the pipe-through-uniq step. I also keep getting told grep has a -r but my finger macros won't stop = typing find . -name \*.py | xargs ... (And yes, it's GNU find just about everywhere, so I can do -print0 | = xargs -0 and not have to get fancy with the -I) But also, crap, it was 25, count 'em, 25 years ago that a friend looked = at my workflow and said "I've never seen anyone use a GUI just as a way = to keep a dozen terminal windows open side by side before." Adam --Apple-Mail=_DD8E9A2B-F03E-4175-A732-F23B9F9B1616 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii

On Jan = 3, 2023, at 6:37 PM, Bakul Shah <bakul@iitbombay.org> = wrote:

I write shell one liners all the = time[1].

Go is just too verbose for scripting. =  I use it for larger programs but typically these don't start out = as shell scripts.

[1] In fact I = use find (or zsh's **/*),  xargs, = grep, sort, uniq, field picking often enough that I wish they were = built-in a shell but  I haven't figured out a simple syntax for it = as yet.

I was = 50 years old before I learned that sort has a -u, so I could have saved = the pipe-through-uniq step.

I also keep getting = told grep has a -r but my finger macros won't stop typing find . -name = \*.py | xargs ...

(And yes, it's GNU find = just about everywhere, so I can do -print0 | xargs -0 and not have to = get fancy with the -I)

But also, crap, it = was 25, count 'em, 25 years ago that a friend looked at my workflow and = said "I've never seen anyone use a GUI just as a way to keep a dozen = terminal windows open side by side = before."

Adam

= --Apple-Mail=_DD8E9A2B-F03E-4175-A732-F23B9F9B1616--