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=-3.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 22913 invoked from network); 11 Apr 2021 23:04:19 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 11 Apr 2021 23:04:19 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1618182259; b=lxidSj8a2IWUyrXz3r8lOtBB4tkhMGWXj+0sPteQ86FynRH2lXrTJQlKx2XWgrGO7FKVyAwca1 yQdbd5MPtPVgmVy/v/G0kvPBObnWdLEyzAou4ibbpHpTixZQ5I7G3UZ7tVFMDCfHrEcwrjlZ9I uM9AyZRmMJwLyGzpNfuZeE5TBTfHR4s+mizB3m+ULWokS5m6QNW6S9+K/eSyOHccfPW3+BJ6+J rbOnKNbmjKgj+czYOtBzBjXGYHHgSVRcf2SsN3vrHdvNPI691DAXHdOPNELQOCPTFLKLpPqO+D gMl1x2gImUBMkYH+6UGIzdNL+Sbq1SEDOV7qCHwqF7Yyow==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-qk1-f175.google.com) smtp.remote-ip=209.85.222.175; dkim=pass header.d=dana-is.20150623.gappssmtp.com header.s=20150623 header.a=rsa-sha256; dmarc=none header.from=dana.is; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1618182259; bh=XnJdI5Xd0k7DD5EwK+WjyEJ32hFoRA64Z1c8q3e27Ak=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:To:References:Message-ID:Content-Transfer-Encoding:Cc:Date: In-Reply-To:From:Subject:MIME-Version:Content-Type:DKIM-Signature: DKIM-Signature; b=NOjFnjOsuyVfzRPWqYGnyOe5QElQxRX000I5/j9xhV9K4a3d2BuV7JuE21xjBoz6O/UP8MmgV+ kpRsmAIF9IykF2GIvQRph07/SXX92RwlI6EjySrArXHpxF1nbSiUuT79g8XGlUFvw5rMEkxJy1 UD3BlhhZEM+k4OS204hY2i7pEzgm6+QKr341W7muy2Ta9acKvWhwTfOzA9bYtq6mUsjF9VedNQ JTDn8VuUX2aH5m8/nvbV9otDXy3szs3qd+d84McxwYQpWzEKpTLqF0H/QB4QQFYTXzYMENmvhn ojufYGOEBJZ6ItA5OlGsHd4/BeLz3y1HcTZW2pZf32hyhQ==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20200801; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:To:References:Message-Id: Content-Transfer-Encoding:Cc:Date:In-Reply-To:From:Subject:Mime-Version: Content-Type:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=35c/nTaBXGMrt3HI883NxyFVtUAZKRGZR3qyTM/EFAo=; b=Kcun04IodOtv4WUCcpvj7xf0NJ RmyWIrIa/osM9TiLfXMzixlEM1EYcIl9g/oAoLlsoTVKbnNLbH21o8N429Hk3UHzp7ynebubOGxds pxOrDcpqOtuCrZKKaedK7M6pnqRPC5DnotBud1hgDlYEgCNAUVVZzpbdclrgDak/gqAtWw76rHfAD 8AI8Da9iY/unM4TcQBAxfEb2suVnh7wZ9/ufz6DV9uud5WpDZplsvP+eHMKeYwSSupu8jIPomgtH2 WOp80Phw3Mjdu7f/OgU2TDhlqMzpRWTxY5h+fnUgHoxQ4bx1lsuWY/17UE9STDrsc5YZTgZNwDhxh xPHQMKBQ==; Received: from authenticated user by zero.zsh.org with local id 1lVj7p-000BGx-UH; Sun, 11 Apr 2021 23:04:18 +0000 Authentication-Results: zsh.org; iprev=pass (mail-qk1-f175.google.com) smtp.remote-ip=209.85.222.175; dkim=pass header.d=dana-is.20150623.gappssmtp.com header.s=20150623 header.a=rsa-sha256; dmarc=none header.from=dana.is; arc=none Received: from mail-qk1-f175.google.com ([209.85.222.175]:45667) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1lVj7b-000B2H-QS; Sun, 11 Apr 2021 23:04:05 +0000 Received: by mail-qk1-f175.google.com with SMTP id q3so11546836qkq.12 for ; Sun, 11 Apr 2021 16:04:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dana-is.20150623.gappssmtp.com; s=20150623; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=35c/nTaBXGMrt3HI883NxyFVtUAZKRGZR3qyTM/EFAo=; b=W0YgvpUCnG8iRfT0r5uhCfwuEtIoXTaYRSTBO+SHcBzB3JVZKWMmNPwwvqpVv76ozL oKb6p9QaPZOmmPwtNEzEUcb0xbFvCvjmv5ujSWSOB+iuXbM67pdplCdYnAwqISWM0P3G lO6nUU2U+ni+jdJ/PumHSiFf7j87Vx8IHjlMbnNnnS2i5Oe3sMCBAwQqmOhbLGhSQu7g ib3ZCj4qA41c7BCwXMQAH4E7P91Wb+GfETfsu0TtwD8G2eeP+dPQ1/uLUfXbG0087wbg zh7Vh8YnDXa6ZMdtwlzUcU2Mmof+JRQNy+crp/NqWj3T3g1/ZAMv7gSzuFuyNEARzQxk Sfng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=35c/nTaBXGMrt3HI883NxyFVtUAZKRGZR3qyTM/EFAo=; b=hLNxzMwY8eZEwycfpYf+GCQkJkbXuMNmFhmcQdLqsZZe2z+PzJb6W9PNVDmp0q69Vg tokrDpnBT81fGNxsnmbc26O07KgOCE652g7isKcUhjkv+g6UsUm6YxVFJA7AMh01IhF7 RK4E+BJTuTTEOrIzmaQDnmx7/+o7/N8R+rZOBNE5R1S6VHirzwGPSEmEo/kFaDgTDcc3 +y+tdh0PjhvrTBfc9Vwvz/EA2a8S64bVuaZ6irAJ74HhOM3Ga9dHgF3CxKr+134ZUIP9 rLCp2fNbnz8Bq0tIz60UUa7x0R91xG1ffFayee3eydJPglnngcezhQKDLwXds2wMLF3J TzBw== X-Gm-Message-State: AOAM533FEnHU/xB8Ug1YtPWxfOExUcSjHyA0a4dqW/XGySp0WtrGp3/j y9kWbN1wbhhgr8O5LFubO5FXxw== X-Google-Smtp-Source: ABdhPJwJVGzSLy+s4p8f/z1rPzcaanBYmeglERCYMZgQUvVZUt3DggcGgkGtpaX7uEo4viq3r1Biyw== X-Received: by 2002:a05:620a:1443:: with SMTP id i3mr24151849qkl.354.1618182242615; Sun, 11 Apr 2021 16:04:02 -0700 (PDT) Received: from heartswap.lan.dana.is (173-17-84-59.client.mchsi.com. [173.17.84.59]) by smtp.gmail.com with ESMTPSA id l16sm6850936qkg.91.2021.04.11.16.04.01 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 11 Apr 2021 16:04:02 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.4\)) Subject: Re: [PATCH] Document imperfections in POSIX/sh compatibility From: dana In-Reply-To: Date: Sun, 11 Apr 2021 18:04:01 -0500 Cc: Zsh hackers list Content-Transfer-Encoding: quoted-printable Message-Id: References: <7FD930F4-37CD-402B-9A06-893818856199@dana.is> To: Bart Schaefer X-Mailer: Apple Mail (2.3608.120.23.2.4) X-Seq: 48509 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 11 Apr 2021, at 11:54, Bart Schaefer = wrote: > You're talking about the thread from workers/42248, which itself > mentions a thread from workers/35317. Did none of those patches get > applied? No, this is a separate problem. POSIX says getopts shall end option = processing when it encounters either an error or a non-optarg consisting of '--' or = not beginning with '-'. zsh's getopts has no way of disabling '+'-prefixed = option handling, so it isn't conformant with that. Regarding the other thing, Peter's patch from 35318 was applied, but = mine was not. I guess Peter wanted me to change the behaviour only with = POSIX_BUILTINS set. I'll look at it again later dana