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_INVALID,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 2210 invoked from network); 21 Jun 2021 14:45:30 -0000 Received: from minnie.tuhs.org (45.79.103.53) by inbox.vuxu.org with ESMTPUTF8; 21 Jun 2021 14:45:30 -0000 Received: by minnie.tuhs.org (Postfix, from userid 112) id 8CBD09C7C7; Tue, 22 Jun 2021 00:45:27 +1000 (AEST) Received: from minnie.tuhs.org (localhost [127.0.0.1]) by minnie.tuhs.org (Postfix) with ESMTP id 334CA9C5FE; Tue, 22 Jun 2021 00:45:02 +1000 (AEST) Authentication-Results: minnie.tuhs.org; dkim=fail reason="key not found in DNS" (0-bit key; secure) header.d=mail.malbolge.net header.i=@mail.malbolge.net header.b="a924oUUm"; dkim-atps=neutral Received: by minnie.tuhs.org (Postfix, from userid 112) id 4C2E19C5FE; Tue, 22 Jun 2021 00:45:00 +1000 (AEST) Received: from poseidon.malbolge.net (hera.malbolge.net [185.232.68.32]) by minnie.tuhs.org (Postfix) with ESMTPS id 8C1059C5F8 for ; Tue, 22 Jun 2021 00:44:58 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=_domainkey; bh=OvWromnE4 8EAHcVm7PI4czsSN3JoDiwEn3qRpH+xmhE=; h=references:in-reply-to:subject: cc:to:from:date; d=mail.malbolge.net; b=a924oUUm4Nl9Pln+Ne2sLx9dx1TJ6x CJFOUs3CP6CN3szmEBhcTN3uZU47dSi6xNdVZT3bH0lB1P30Lm85aBGWz6aRfmCaiI8/ES imnTM4v8a+N1mkAh+hnqravv4Er9mtzY2iDheMF1lVu6vOY6g02qxcTQ3H5h85s+8nDooA M= Received: from hermes.malbolge.net (hermes.malbolge.net [192.168.123.201]) by poseidon.malbolge.net (OpenSMTPD) with ESMTP id afe38267; Mon, 21 Jun 2021 16:44:55 +0200 (CEST) Received: from moon (hera.malbolge.net [10.0.11.1]) by hermes.malbolge.net (Postfix) with ESMTPSA id 0D48A1B9C39; Mon, 21 Jun 2021 16:44:54 +0200 (CEST) Date: Mon, 21 Jun 2021 16:43:15 +0200 From: Michael Siegel To: Chet Ramey Message-ID: <20210621164315.1587cffe@moon> In-Reply-To: <04536d5b-a6dd-4900-80de-4efc6824aa68@case.edu> References: <20210621113752.110edede@moon> <202106210957.15L9vpZu004496@freefriends.org> <04536d5b-a6dd-4900-80de-4efc6824aa68@case.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [TUHS] Arithmetic expansion in Unix shells 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: tuhs@minnie.tuhs.org Errors-To: tuhs-bounces@minnie.tuhs.org Sender: "TUHS" Am Mon, 21 Jun 2021 09:50:38 -0400 schrieb Chet Ramey : > The $((...)) form of arithmetic expansion is something POSIX picked up > from ksh-88, eventually. The early drafts of the standard (through > 1003.2 d9, at least), used $[...], but they eventually adopted > $((...)) because ksh-88 had already implemented it, though it's not > documented in Bolsky and Korn. So, in other words, POSIX shell (meaning the shell described in the standard as it has been released) had double-parentheses arithmetic evaluation from the start? -- Michael