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.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED 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 2325B22013 for ; Mon, 25 Mar 2024 11:24:14 +0100 (CET) ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1711362254; b=fjr7llVIWWJM24WSnCUERHWsgIQO/WZPAc1Ko3m7uEJLZ2IwThQ2TppMSWQ9q832LCZkax+V7B 9EiqBSm3sc7eLcivYKlqGnjjzxECNxjsht/2Zjlnlq/Ciiv1qFRHJPDzRaaAw/c7CSArFfYCIQ Xw3jJafWg2r1hFMg1S6Lt+s8eeeMWziZnGSPsZvpLWZPBt0uq3V0p6U16rQZHRF7jb1BQ9yd3O u4ljUxT5lbr+q75bSdlhl9gv/KkJVQQuj0T5oASyHkdEQdgDz9AwHP0qKNX94rUbqotRse2k9F FKDhhSDQCTG+xEAk4JK+7w8LrD5Kpi64Y0gNscf5gY0HpA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (cventin.lip.ens-lyon.fr) smtp.remote-ip=140.77.13.17; dmarc=none header.from=vinc17.net; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1711362254; bh=lmHeoGQYTU9jYN7mTlZWK0D+yQTyL0t6yj2tcx7NhvU=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:In-Reply-To:Content-Transfer-Encoding:Content-Type: MIME-Version:References:Message-ID:Subject:To:From:Date:DKIM-Signature; b=dhzRBlBENC37YRbWMEmkx24I03ul0wscoZUDKTZQeyJxhDKEDtaB88JdJn7rwgHd/yHVyJ42KW flnLqSkM+SreOnUw0MRUI2zt2ISIhJw9KbRjKfjE1whSYN+FUEstcjRg5NVAVBFusVgaGjr0fK T/M78Ltw2lUxd1KLhiJWOiu5DqELSBOVnTq7IZvkfmYwrTiJUKNoHloTqJqvdy2nhujuBFpxzw 8UoWgI/JOfT+W9TyYRbXWaJj+jetOEXcS0xitWluU0Q3GZhuyQAf4ywLBCt8jyqUcNfIpx2rX2 Aan7wOZUD0DpVdKKWuCCOWaC20NQk4DehEcYSQwfwrgUuA==; 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:In-Reply-To:Content-Transfer-Encoding :Content-Type:MIME-Version:References:Message-ID:Subject:To:From:Date: Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=DVPzyeoqR+PV6wKlBkjwkADz45+FZpPfufkBcsgHEIc=; b=NGXeD0zsQq/9fpYXoxtDcQh4sE W9Us7ZDydWF5EXZfZd1ldSCy7xn8S5F6k4RYaH2Tg4rwz1QMe9jCUt+Co/oXvvTTfIvCpcIYpRzyj T5mHhSe01UooI182Si8A5JOo03WsDXI53oipCnk4akdNxoI7CZtQLabBZRBfrKIL9BC1xevyyYIlv ucGI7Ncl1/XMdDVb6nEzYv/6tTVExfm3WTe8hlLmU7hW6vpkDimM5NrPwPVKDwYRsXplBqhV7ctni lZ6xf94n7PrcQlvsjemVK5JqDoe3uU5xIXzKDiaRQd4HuqXcTxd2SwtxJKmFYZmz6Q1bNvakw+PKL lOh4UEsQ==; Received: by zero.zsh.org with local id 1rohUy-000Bdr-LM; Mon, 25 Mar 2024 10:24:12 +0000 Authentication-Results: zsh.org; iprev=pass (cventin.lip.ens-lyon.fr) smtp.remote-ip=140.77.13.17; dmarc=none header.from=vinc17.net; arc=none Received: from cventin.lip.ens-lyon.fr ([140.77.13.17]:58944) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1rohUj-000BMg-Ep; Mon, 25 Mar 2024 10:23:58 +0000 Received: from vlefevre by cventin.lip.ens-lyon.fr with local (Exim 4.97) (envelope-from ) id 1rohUh-00000002akk-05ry; Mon, 25 Mar 2024 11:23:55 +0100 Date: Mon, 25 Mar 2024 11:23:54 +0100 From: Vincent Lefevre To: zsh-workers@zsh.org Subject: Re: behavior of test true -a \( ! -a \) Message-ID: <20240325102354.GA617604@cventin.lip.ens-lyon.fr> Mail-Followup-To: zsh-workers@zsh.org References: <20240321100710.GA164665@qaa.vinc17.org> <20240323222036.GE164665@qaa.vinc17.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Mailer-Info: https://www.vinc17.net/mutt/ User-Agent: Mutt/2.2.12+69 (354c5b11) vl-149028 (2023-12-10) X-Seq: 52811 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 2024-03-23 15:41:33 -0700, Bart Schaefer wrote: > On Sat, Mar 23, 2024 at 3:20 PM Vincent Lefevre wrote: > > > > On 2024-03-23 14:48:36 -0700, Bart Schaefer wrote: > > > I'd therefore argue that it's actually > > > > > > % test \( ! -a \) > > > > > > that is wrong > > > > POSIX specifies what happens with up to 4 arguments. > > Ok, but > > % test \( ! -a \) \) > > has five and > > % test \( ! -a \) -a true > > has six, and in neither case are the "first four" interpreted as you > would have the "last four" interpreted in > > % test true -a \( ! -a \) I meant that test \( ! -a \) has four, thus fully specified and not wrong. Concerning test true -a \( ! -a \) I would say that if you decide that the first "-a" is an "and", then after this "-a", there remain exactly 4 arguments, so that for *consistency*, I think that the remaining 4 arguments should be interpreted exactly as in test \( ! -a \) -- Vincent Lefèvre - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)