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,MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 5255 invoked from network); 2 Jan 2023 20:06:59 -0000 Received: from minnie.tuhs.org (50.116.15.146) by inbox.vuxu.org with ESMTPUTF8; 2 Jan 2023 20:06:59 -0000 Received: from minnie.tuhs.org (localhost [IPv6:::1]) by minnie.tuhs.org (Postfix) with ESMTP id 9A3E3424A4; Tue, 3 Jan 2023 06:06:54 +1000 (AEST) Received: from mail-pf1-f176.google.com (mail-pf1-f176.google.com [209.85.210.176]) by minnie.tuhs.org (Postfix) with ESMTPS id CC28D42495 for ; Tue, 3 Jan 2023 06:06:49 +1000 (AEST) Received: by mail-pf1-f176.google.com with SMTP id k19so11535192pfg.11 for ; Mon, 02 Jan 2023 12:06:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=0MMo2DzmJXiJ4tzKXO7PEHwu/fpndajQMSD1hzMwrpA=; b=LHPgLmYMJhBG5mwfnk7KNMl5MKhMUtzks3PnilbLelfIQtLuAPdHss0N6r3LURwCFV Q2z/GdEZ7Ht/c9ontwVNY+2UXPmYcbg0Htq++shMtzd6FlOfQht4+5Timj2IMzSce85n n92yJUKiHfwU99mGEynDWvv9ZI96lGvuZPvz8KhCa94k+D1z5nsl1P7osPYdd5P44aGP 1BCH0Y3quaovoWb5dQslwV9Q8ORJdeUy6Ya1OS/LnGJbeJ2iTSoLZ4nAntZ1poKkNRbJ 0iCXYbwJsCTxwuRYYeODZB3v2Az/Gra/ooavhmadHLJcfwySf3Ko8NkBpohzgsM21CcL mwCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=0MMo2DzmJXiJ4tzKXO7PEHwu/fpndajQMSD1hzMwrpA=; b=Abwnzt1rxLuHT+gHqFKuzzq8J3TVNIFJz015F2h8nLQtb/eOKPdaDFhO5uDdkkxZkb 8qbmR3DzFZvFwMp1hlYwaRXGi+nG7Eme0cPWujIAn60l8uUYpy4ZyQKXofHNbhVRmG0D YgB/BM8xtGf54IE3iuALOqC4oU5xV3gS8NfCDpw6EhnpKsr/smcn0/RHt4dnwuNAXGng vwWJ7rrATDtFFBILbnngF/tqpGWJIT/GmSsNFGO066iYbZo5aufz4uFjlGUurBsxLED+ 4RmHpwAAB48aX2DjjdCBS1mGKevyKC7+4P3cRbLLkTe0hRqir0++rAbFGt3xnq5Hu4D+ wB9w== X-Gm-Message-State: AFqh2kqB0mFGFh9zrotqrjkP1qdpl9HZVlJDRI+A0v3OEEVIuDJ7DVVb 4379x8Gl/toQI1Y+dnlzfFc= X-Google-Smtp-Source: AMrXdXsQr7NU0hqw9OyXnwmglPpAm5dzH26xq1JTC1ftTnR7D3JTo7IaosgBLgNfaYzkzWjojIhntA== X-Received: by 2002:aa7:9284:0:b0:581:6069:5c00 with SMTP id j4-20020aa79284000000b0058160695c00mr23762936pfa.28.1672689949364; Mon, 02 Jan 2023 12:05:49 -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 199-20020a6216d0000000b00580f224cdf6sm15444649pfw.203.2023.01.02.12.05.48 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 02 Jan 2023 12:05:48 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.300.101.1.3\)) From: Adam Thornton In-Reply-To: Date: Mon, 2 Jan 2023 13:05:37 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: References: <88f83b4c-b3f9-ed87-b2fa-560fb369742a@makerlisp.com> <20221231035931.GG5825@mcvoy.com> <528f0c53-ccc2-88a1-5a7b-120362c648dd@mhorton.net> <20230102165120.GK25547@mcvoy.com> <20230102174304.GM25547@mcvoy.com> <59004a29-5119-9dd9-c248-518b8c4e7928@makerlisp.com> <20230102180020.p6gmiwhrnidfbfsc@illithid> <20230102181242.GO25547@mcvoy.com> To: Warner Losh X-Mailer: Apple Mail (2.3731.300.101.1.3) Message-ID-Hash: IUVCXOA3VSER2IPBLDMUJ67LWNHOME6Z X-Message-ID-Hash: IUVCXOA3VSER2IPBLDMUJ67LWNHOME6Z 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 CC: The Eunuchs Hysterical Society 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 Jan 2, 2023, at 12:50 PM, Warner Losh wrote: >=20 >=20 > You can get super close though, but I'll bet there's some scripts that = work only because they didn't run on, say, Eunice... "Congratulations!" >=20 > But luck favors the prepared... and making the effort to try to be = portable will help when you have to run on dash, or one of the BSD = shells that might not have $<(cmd) or some other useful but not = universal feature... Yeah and I think we're basically agreeing here. The problem isn't = *really* whether you use some-odd-number-of-backslashes-and-a-backtick = versus dollar-open-paren, the problem is people who put #!/bin/sh at the = top of the script when the contents only run under bash. And there's a = lot of that, because just as all the world was VAX once upon a time, all = the world is assumed to be an x86_64 Linux where sh is bash. At least the move towards containerization has largely defeated that = assumption now, although in some sense it's also just swept the problem = under someone else's rug. Adam