From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.5 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from minnie.tuhs.org (minnie.tuhs.org [45.79.103.53]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id 3fe5b6a7 for ; Mon, 6 Jan 2020 22:53:35 +0000 (UTC) Received: by minnie.tuhs.org (Postfix, from userid 112) id A197E9BB73; Tue, 7 Jan 2020 08:53:34 +1000 (AEST) Received: from minnie.tuhs.org (localhost [127.0.0.1]) by minnie.tuhs.org (Postfix) with ESMTP id 54E8D9BB69; Tue, 7 Jan 2020 08:53:21 +1000 (AEST) Authentication-Results: minnie.tuhs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="Sr7H5G7O"; dkim-atps=neutral Received: by minnie.tuhs.org (Postfix, from userid 112) id EB6639BB66; Tue, 7 Jan 2020 08:53:18 +1000 (AEST) Received: from mail-qv1-f47.google.com (mail-qv1-f47.google.com [209.85.219.47]) by minnie.tuhs.org (Postfix) with ESMTPS id 5E38F9BB4A for ; Tue, 7 Jan 2020 08:53:18 +1000 (AEST) Received: by mail-qv1-f47.google.com with SMTP id n8so19738002qvg.11 for ; Mon, 06 Jan 2020 14:53:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=jdD8sa1M9DaJcNMNiZrF0rytsAQi/M713+3dvw5I2SQ=; b=Sr7H5G7OYSGuP7alRigcgxeMtBCSSGLEhMJHcZQp/MT4P0//7DeUYu0DdIE2IG/469 u9017t7MdmDfAnCZYjE/4rZEa0gP1T/uuK8EwJJ0pnOciecZzx/6sCjBG1PTrbFwrDGr tiAyTopsy8Uyj8ce+Eer6aStffWUtYwjXxtAFEWwerHt5hA0eJ6btao2IGExP4TruAGM kZBs7ELR+5pyUxXhjy3Yk7LLHeA3poKsUfDj2746Nkq/dp4VcmcDvAtj5s+ZmaR5eQrh RhaqKI3u9waT+vvSILvNqvjxbpg6Qs/b09VP1wdeW54p+/kKN021mt+AKLSFKmoqo18M CvbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=jdD8sa1M9DaJcNMNiZrF0rytsAQi/M713+3dvw5I2SQ=; b=dHz+VnireFPfgHSH807HNxOqdV9sph3rxaYKVX0hNWYDq6uTbsXhf4d8n3g+tU1Qru 2Tr1t5+Tg0I/2BvsvnrSRVgXVAqMZzJtWMZx3MFv30ctI1hzN2fuMqPMyBF3wTVCX0eB 2EvFih10mhGb+DqeKh0eKFXl2WMt882V+tWpwwuOzmqpjyku+ZMTjkSm9HavQNH1b8DH 031cIv6eLMLFOM4taTnV1JuwmDtHcxtzaTwgdCtGn8abLlbyPL8FhnPZIglZPXTFYS8O asL4x3J+6A3LwxB74BIw/UAoICUA/qFYS+kbtTh1d10LKT0WwO4FXSKWGH55D1AdCitV hBNg== X-Gm-Message-State: APjAAAUZEGKcagUVnO1WZNv8nz0/f++DFcIo7WRlqWf1qIMIYzgT2lET C4gEU3KJX25enmfyziYb/Uw+2IPvCuP96ihiqOc= X-Google-Smtp-Source: APXvYqxdYagtXubyo3SHZ7r6H/z7Ckva0lq/+ppTzk34C1MOJlf8nQwS/X/pnAy4s18Qmd1UazNu0DdBJFkGSftoCmk= X-Received: by 2002:a0c:9c86:: with SMTP id i6mr81531326qvf.214.1578351197570; Mon, 06 Jan 2020 14:53:17 -0800 (PST) MIME-Version: 1.0 References: <202001040258.0042wuic1359237@mail.cs.dartmouth.edu> <1ingL0-5g6-00@marmaro.de> <854eca1c-e5e5-5d8b-f5af-30cd1735096e@case.edu> <3958ec66-c5c0-e1bc-1476-2195907816b3@case.edu> <49E33BA0-C482-4A95-BF2B-2107C661D76B@coraid.com> <202001061546.006Fk6Fb012760@freefriends.org> In-Reply-To: From: Dan Cross Date: Mon, 6 Jan 2020 17:52:41 -0500 Message-ID: To: Chester Ramey Content-Type: multipart/alternative; boundary="000000000000764df2059b808620" Subject: Re: [TUHS] sh: cmd | >file 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: , Cc: The Eunuchs Hysterical Society Errors-To: tuhs-bounces@minnie.tuhs.org Sender: "TUHS" --000000000000764df2059b808620 Content-Type: text/plain; charset="UTF-8" On Mon, Jan 6, 2020 at 4:56 PM Chet Ramey wrote: > On 1/6/20 4:29 PM, Dave Horsfall wrote: > > On Mon, 6 Jan 2020, arnold@skeeve.com wrote: > > > >> Would anyone who uses Bash regularly, both interactively and > >> for scripting, really want to go back to using the V7 sh > >> for production work? > > > > I have never used all the fancy stuff in BASH such as the arithmetic > > functions; I still use "expr" etc for portability. > > Portability to what? The POSIX $((...)) arithmetic expansion is widely > implemented and near-universally available. > > Some of the other things are more esoteric, but you should be able to > increase your expectation to POSIX features and still be sufficiently > portable. > Huh. I've been in this "use the old stuff for portability" camp for some time, but now that you mention it....I can't think of any systems I use that require resorting to old-style shell-isms. What an interesting epiphany. It reminds me of the time when first I realized that continuing to write K&R-style C was no longer necessary, as everything that I used had an ANSI-compatible compiler and supported function prototypes. Seeing backticks in the rearview mirror is a welcome change. - Dan C. --000000000000764df2059b808620 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Mon, Jan 6, 2020 at 4:56 PM Chet Ramey= <chet.ramey@case.edu> wro= te:
On 1/6/20 4:29 PM, Dave Horsfall wrote:
> On Mon, 6 Jan 2020, arnold@skeeve.com wrote:
>
>> Would anyone who uses Bash regularly, both interactively and
>> for scripting, really want to go back to using the V7 sh
>> for production work?
>
> I have never used all the fancy stuff in BASH such as the arithmetic > functions; I still use "expr" etc for portability.

Portability to what? The POSIX $((...)) arithmetic expansion is widely
implemented and near-universally available.

Some of the other things are more esoteric, but you should be able to
increase your expectation to POSIX features and still be sufficiently
portable.

Huh.

I've been in this "use the old stuff for portability" camp f= or some time, but now that you mention it....I can't think of any syste= ms I use that require resorting to old-style shell-isms.

What an interesting epiphany. It reminds me of the time when first I= realized that continuing to write K&R-style C was no longer necessary,= as everything that I used had an ANSI-compatible compiler and supported fu= nction prototypes.

Seeing backticks in the rearvie= w mirror is a welcome change.

=C2=A0 =C2=A0 =C2=A0= =C2=A0 - Dan C.

--000000000000764df2059b808620--