From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.5 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: from zero.zsh.org (zero.zsh.org [IPv6:2a02:898:31:0:48:4558:7a:7368]) by inbox.vuxu.org (Postfix) with ESMTP id 8991D216E5 for ; Sun, 24 Mar 2024 03:53:20 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Transfer-Encoding: Content-Type:Subject:Cc:To:From:Date:References:In-Reply-To:Message-Id: MIME-Version:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=RAkkbNHE1r0pbx/xJQU5Q10qgItx0vsW8p6xvjLBGeg=; b=Om2sfaXUeMupWvi8JALuRFwldz gp5VG0JmXCtR6jSo+d7wBuCv7i5RNS11thjJz/FskUghmYra1jvI6mjCGEdeWRaT8mYvEmSUjwcvU f2aDPiKSfxxbwNcdFMfL7iaUIgCqu6t4qeFgTOSTzQt1yklv4VESmM0jcHhLT3w30mVVuxNbQdMpy Yj48qv7jy1MaAVIYSXE7NZ47f3E5oUDud+51b0b2PATP25DVNHjflMP0PwUc5VB0fuU7tnapn7hmc dL3gy6oRglsRnH/n5OVmrCHAPyUsK6RPXXxulIsePP+DnT2q6yNMyfKuSgSbxoshbyWLlFOABeska HzonNjpw==; Received: by zero.zsh.org with local id 1roDz6-0007e5-I4; Sun, 24 Mar 2024 02:53:20 +0000 Received: by zero.zsh.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1roDyW-0007Jd-Oi; Sun, 24 Mar 2024 02:52:45 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailfauth.nyi.internal (Postfix) with ESMTP id 098871200043; Sat, 23 Mar 2024 22:52:41 -0400 (EDT) Received: from imap48 ([10.202.2.98]) by compute2.internal (MEProxy); Sat, 23 Mar 2024 22:52:42 -0400 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledruddthedgheefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtgfesthhqredtreerjeenucfhrhhomhepnfgr fihrvghntggvucggvghljoiiqhhuvgiiuceolhgrrhhrhihvseiishhhrdhorhhgqeenuc ggtffrrghtthgvrhhnpedthfehhfdvieeivdetheeiteeiuefhleevjeehvdejvefggeeu ueeiveeljeeljeenucffohhmrghinhepohhpvghnghhrohhuphdrohhrghenucevlhhush htvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehlrghrrhihvhdomhgv shhmthhprghuthhhphgvrhhsohhnrghlihhthidqudduhedukeejjedtgedqudduledvje efkeehqdhlrghrrhihvheppeiishhhrdhorhhgsehfrghsthhmrghilhdrtghomh X-ME-Proxy: Feedback-ID: iaa214773:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 8B4CF31A0065; Sat, 23 Mar 2024 22:52:41 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.11.0-alpha0-332-gdeb4194079-fm-20240319.002-gdeb41940 MIME-Version: 1.0 Message-Id: <6cd18696-c5be-4306-9660-ed625de3bf69@app.fastmail.com> In-Reply-To: References: <20240321100710.GA164665@qaa.vinc17.org> <20240323222036.GE164665@qaa.vinc17.org> <81df9600-a0c4-4c7b-a4fb-f61106395b96@app.fastmail.com> Date: Sat, 23 Mar 2024 22:52:07 -0400 From: =?UTF-8?Q?Lawrence_Vel=C3=A1zquez?= To: "Bart Schaefer" Cc: zsh-workers@zsh.org Subject: Re: behavior of test true -a \( ! -a \) Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Seq: 52807 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: , List-Subscribe: , List-Unsubscribe: , List-Post: List-Owner: List-Archive: On Sat, Mar 23, 2024, at 8:14 PM, Bart Schaefer wrote: > On Sat, Mar 23, 2024 at 4:33=E2=80=AFPM Lawrence Vel=C3=A1zquez wrote: >> >> The next version of POSIX will only specify what happens with four >> arguments if the very first one is "!". The "-a" and "-o" primaries >> and the "(" and ")" operators have been removed. > > So, no "and"/"or" at all, and no grouping? Or are they just demoted > from "primary" and "operator" in some way? The former -- everything marked "OB" in the current "test" spec [1] has been completely excised from the upcoming one (although shells can retain them as extensions to the standard, to avoid breaking scripts). The current "Application Usage" section [2] already recommends that portable scripts stick to simpler "test" commands connected with general shell syntax, like so: test -f "$foo" || { test ! "$bar" && test -d "$baz"; } [1]: https://pubs.opengroup.org/onlinepubs/9699919799/utilities/test.html [2]: https://pubs.opengroup.org/onlinepubs/9699919799/utilities/test.htm= l#tag_20_128_16 --=20 vq