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 1059721376 for ; Mon, 25 Mar 2024 16:22:26 +0100 (CET) ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1711380146; b=SjtVAZzGpoblzXCfEDK2SM+HWzCe/f1xZjfmESRTgkRXUYUNGmCVUiNtE5tZzLDIbj/Ux97I8F DXjxdtBGW33bYLC8FvqZulUvEUdW1VPt1j/naVdLhqKYz1FBpI0jJSiNJYJ6BWTW58/TLjT550 PYieCyjqrm668seP0ctyCcrfy7e4IH8l18q5wSv3Ruut/qja86xCfmCVvbKY6sMoCF5X2EOsdr cdv6KIHsjpO1SqCe/L5qizMVP3D2wjhieTY0QCBJYlmyKKsjJ2xTJzMJE2HMdGtcZoqSBML5bk ZugZ0Ubm8+NBubpkMBSsq7LTK6N7ziSO57J6+LlVS6JFMA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-ej1-f41.google.com) smtp.remote-ip=209.85.218.41; dkim=pass header.d=brasslantern-com.20230601.gappssmtp.com header.s=20230601 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1711380146; bh=mjPnXxMcESB8+Kwj2bDdzt7tSIUH8g0mW+p5S90PKZg=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:To:Subject:Message-ID: Date:From:In-Reply-To:References:MIME-Version:DKIM-Signature:DKIM-Signature; b=DrlAethvVi3YvpkdwC3M8ibVDMUYeT6dE7d5gQDi40vtEsgFq2m4MK+w2WkWW/GXBqGi32fPSe sLj/HZxr+cuxGXGAB8LsgUrUhjBxOJZegIAFC8Ixg56KCv0ex04So2KzsViZ9JMsvR/Yc9R+vu MxqQ4xkWD6nloJnz6mM74AV9Ix8IhbZyW/yQo0o24cDuqxgm4wCwzuFAd2c9iLGdj2jgDyYB7o Ppo/hs5uXquYOonDoX1sjLf6rJdvkFzwDjMQPYGZdXMRUP15fQ1ynIbaWvO2yoUyKS1kmxUBFJ ZQg+5xh8SU74fdn9hRUucDFtoSY0Lyf2rDU/M6lC79dLFw==; 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:To:Subject:Message-ID:Date:From:In-Reply-To:References: MIME-Version:Reply-To:Cc:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=Ntrsfc4QBOevAfq3YvXNAN2DLANYLdpLhCLvqKcEK+A=; b=RO6G3UEQDT2Ymwmf/a7vrV6kEZ LCD4UL5XKzVZFFM53se5isFW97aSzfxsJ4zhwXyy4fa08dqvT7t/DJ01uLG0JT9yv/Jkslm+ne139 REeZ2WwdhGHmxAbD5Ur4veBKbOGmlAbZArBn0XQuvwFcjWLOmwwXsX9A55Y78dyipYiwmvv72/hIJ W8yYtfPbR1jFi5ZdWm0mMuKTQiU/auWIgJuZEmncxOhM5X7Cveo4VIe4sEBAm29vmsN9wqUxSncbi YJ0LaO7lmmWhezL3Js8kLLdog2vEePA2+Ea0u2Ju/M2SG7XhbWmNNIrDxCv/+E+pepLHWRSaBgiuu M0Uz62ow==; Received: by zero.zsh.org with local id 1rom9Y-000JmQ-Rq; Mon, 25 Mar 2024 15:22:25 +0000 Authentication-Results: zsh.org; iprev=pass (mail-ej1-f41.google.com) smtp.remote-ip=209.85.218.41; dkim=pass header.d=brasslantern-com.20230601.gappssmtp.com header.s=20230601 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none Received: from mail-ej1-f41.google.com ([209.85.218.41]:45333) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1rom9G-000JSb-4O; Mon, 25 Mar 2024 15:22:07 +0000 Received: by mail-ej1-f41.google.com with SMTP id a640c23a62f3a-a46ba938de0so610299066b.3 for ; Mon, 25 Mar 2024 08:22:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20230601.gappssmtp.com; s=20230601; t=1711380125; x=1711984925; darn=zsh.org; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=Ntrsfc4QBOevAfq3YvXNAN2DLANYLdpLhCLvqKcEK+A=; b=deERN1Vsas9D51vCvxiHimuT+Zf79yJclubftqWGauVVhBbpCmCwFNju9oy0G0rA4Z Ydr1JM94lZAk1ZyDGbJntE5SuqO8LUzn3JA3IUK1/SbidyJKZFOafaxrfbFDFp2W37Ca 6WpoAu44HRkkxLccowoSnELzxPJ08BoEpNuT+s4n+M7jCH9h5Svqh3fdjqS9IRXwF+Bd sfcAI6vK/gnqexqL5KrZkNWzKSc/Rzhl12d7L6ZGwSJXA87j2CFUVOWTVjadgw84OjFK zEBGeUYLLoXD15uiuGzfU3gmF6T27x/AXxugNkxlxboqfqb4YM1xK/fZKnSt1aiQ/nYM Sj9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711380125; x=1711984925; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Ntrsfc4QBOevAfq3YvXNAN2DLANYLdpLhCLvqKcEK+A=; b=dfWNeeSAnNCO4538NFsdyZbnzyVaXhpHhE1OP+dNsm2o1VP49jn8E/ElfOZdktmQJ3 9m1Mn4R6z/p1zdIv1zjes9z0vsXMOzQ/EDnDHg2WGxAx8zYoXbqGOQ/g6fSR+utDz00R OSN1XCpxmt5Wqb1u/QvrV+PUx3lt3KPzaiACbZo6BYdA9RFTk9MrZqqHXgqeYDYJtJRR +mXIercRbFVboZwMJqDwJ/QL3ibw+fWRxJgqquZcxrb9FC3Y/MZvr7fhGYcS8wAGyWmA zf+sKOtDn1cUClBDbvKSWZoDMms679unHyVMToBHY4eoOQl8b3Ukjzu8NIRq8KWMvVDt GOoQ== X-Gm-Message-State: AOJu0YyY2J7mo0Oab00+bUf0M5HG97YMNLMfmTcYfonFEbb7sjQYcJd8 3FRb1rCi+H0KrL6SL97bsL6GGQzeQwGmZ6Zw2L2iN35h6KgDrVLONanPDxdLlJfWwOmnjq/ABnn pgtb91GgCRggQcQsRRTLIIhyxNoLngMefANUAK3l/S+IGb9fh4pJF X-Google-Smtp-Source: AGHT+IGpXKqqJHrjKI21Ogndk4QgN1EPcxIwkTrfV6JWOIUrH9b81JdvWeBvSbjNBQEC5pOoiEAV3+2GvcvMnRtSVDU= X-Received: by 2002:a17:906:f28a:b0:a46:a81a:330f with SMTP id gu10-20020a170906f28a00b00a46a81a330fmr43076ejb.5.1711380125267; Mon, 25 Mar 2024 08:22:05 -0700 (PDT) MIME-Version: 1.0 References: <20240321100710.GA164665@qaa.vinc17.org> <20240323222036.GE164665@qaa.vinc17.org> <20240325102354.GA617604@cventin.lip.ens-lyon.fr> In-Reply-To: <20240325102354.GA617604@cventin.lip.ens-lyon.fr> From: Bart Schaefer Date: Mon, 25 Mar 2024 08:21:53 -0700 Message-ID: Subject: Re: behavior of test true -a \( ! -a \) To: zsh-workers@zsh.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Seq: 52812 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 Mon, Mar 25, 2024 at 3:24=E2=80=AFAM Vincent Lefevre wrote: > > On 2024-03-23 15:41:33 -0700, Bart Schaefer wrote: > > On Sat, Mar 23, 2024 at 3:20=E2=80=AFPM 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 [...] > > I meant that > > test \( ! -a \) > > has four, thus fully specified and not wrong. And I meant (in the follow-up, being unaware of the exact spec at first) that I think it was wrong to specify it that way in the first place. I suspect that we're re-hashing an argument that's already been had on austin-group and led to these constructs being first declared obsolete and soon dropped. > 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 \) So what about test true -a \( ! -a \) \) ?? Counting arguments just doesn't work.