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 29310 invoked from network); 3 May 2021 23:39:18 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 3 May 2021 23:39:18 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1620085158; b=fKjwBJf4b9qhrkD0WQpYbxEna2AlLxjDOVfdqQ+wGSw3ByzNSyWCQJ7TJq4uLThmFZ2/ueBiPD 5uVt6QeD/P0gx4+gPX/u2TtW7/4wj7/Mst7Pyo28QAJ3bLu/XCtzTg3ZmC1yvmHC3htETEyxvW F/UpqvmFk9HxQmSbsj2sp1cG248AsHLgtPHAdiw765FRFQH7QffG/a9rQ2eSPrBgaObfLsRH36 DgZ1FBEiDtCnzduVGHgLWTZJatTUXz26Jm2MPjUXZcT6DO+zL9H4OVHt/YgBaziXiLHojXaUmW husDwlSoIyXI6BYuYH6qSANHq7x+utsufNgCd+NY92ZDYw==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-il1-f175.google.com) smtp.remote-ip=209.85.166.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=1620085158; bh=vV42l7GHqWGkNmHGZKp8Bp5VidWV1+YwLoeFAyzVtlg=; 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=t2HtZENstvRxQQYc9SIdQjt516B4bFasn9MTAgADGd8OhaAQZGRT7Bu6n2muyDp5sVWTyCQEpK E5WnfpezUb3d2BB9BM9Ox+OG/948aekRA+kF4/J53vyOs7nr/sI1izyChvLnq7dLge+yUiE1Va SUG+6I+lxGQDXzMpOCCvp0BfDkvYSgVLSYf42+K4ruMp9QeaOeaSioxvT0eC/oCasB11qQZyYH 628crWmgk7RSzSMuwIxVBK26XzeKde7chA6erbUZGtcCIcFwWYb+p77zIkZbtK6xvDXgDVXTVr g9lYk0l0zax2rbsFOxHNrt2wDL2uWZpVpVwHkDq03M5D9w==; 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=vV42l7GHqWGkNmHGZKp8Bp5VidWV1+YwLoeFAyzVtlg=; b=Y4BIJa8/GYqJACYBpaUe4LsWlI wSg4Xjs8dDpkRPMmsLSQSAdqYPtddgI9GR7WfpZlb2adE4CkbwozqDjtn1vHKy6Bv3lEniR89bVXx D94eBWZ2D8ogKxGybA1Rt2NW/Y/8m80kKUK6/HwB+L9z9eCKRveWNMpqPH34XFdQAKTnguYaqwL+x eKuVBsIrxhBSvN4EQT79Lrm2op+WCM4SWjjK0eNc4H6m60RNsqo1pzlWMhC4EGyl1XhMZwqxgiumu 1SsVA/6BhnldSTBVxwUytImjppimDxyxob6HNBqQGO34cGLHXRRfOxw1EPRNg0smS5/NvMJNPdkND tbRWfdjA==; Received: from authenticated user by zero.zsh.org with local id 1ldi9k-000BRY-Me; Mon, 03 May 2021 23:39:16 +0000 Authentication-Results: zsh.org; iprev=pass (mail-il1-f175.google.com) smtp.remote-ip=209.85.166.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-il1-f175.google.com ([209.85.166.175]:36772) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1ldi9C-000BD9-Ru; Mon, 03 May 2021 23:38:44 +0000 Received: by mail-il1-f175.google.com with SMTP id p15so4958168iln.3 for ; Mon, 03 May 2021 16:38:42 -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=vV42l7GHqWGkNmHGZKp8Bp5VidWV1+YwLoeFAyzVtlg=; b=EZmE/8dw84pkRKpnPVv9/1RNiiWShGQ2J+HnbjrfQstpF7XAd/+iDh+RVm2LpmkCNW 35lHL01fgoijB1P1YfXNAqOCJolgHbmtRxW0dQKLRfV+vaslVEIP3N7jd/ILWCg85o5t qwnBkjuQybUG/UY1PZl1ymPaaubHBN1aHI6cLnuyl8HdjNoWeE+xmM1uH8F0YmYWk2j0 ITKHRraCEn9KGPuBLfVf8jSzBgwo4aY8Hbyx/ZqVVY95GJUqUrQ9B18My0qvUQ5f9lDa ls+m1qZKeNuhoHiYkOhb7GrcXyT7BD5LNmRCSt6VLuoOPsOvadpBay2MgS0SvCr9w3Ei wVCQ== 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=vV42l7GHqWGkNmHGZKp8Bp5VidWV1+YwLoeFAyzVtlg=; b=O02vy2hCEs2ywBkYZcLIswvA2EeWHiW3BIVrXY2uvZ7SL9261jpRlmqX7Y+Ow209mi LtpX4UE6sQlWKm7b8z6NwayTeaXBy9sC7UzpuLBzvmbHqQGmDzqbkr4+Ui7XJ4tMNn9R j9e6zi9OLAuFl+QFz4WpYwIFucDFr25Wf9yq9tEfvFZaa/0IsQybgtkDM6jri53TcJtw hu4BwyICRDyo6LXAqfNiC6uSOsMNQb0Jm+8XEq7/ZhAka/U/MbZmEBbfbFkI9kL66WR9 rKdsyGNXokIKqVGPujPF/pSJv2oCCLdBUnXV0fby7KJmTT7qxAKSdjtYvmG7IGhv/Oez tlRQ== X-Gm-Message-State: AOAM531IUdqjlCm5glZyG4mnOg83sirnwkyPrvZsT4AZNOjDea6lLUIl AyO1suxzp0ZoHtnDEG0h89MkDA== X-Google-Smtp-Source: ABdhPJwuA2eNFBKvvg5uWtwmy/2R0OAjqaB4p/zNnfmOfNi/qCXeU/fd7fZMhRndCpoMxPR9nrafKw== X-Received: by 2002:a05:6e02:eac:: with SMTP id u12mr12032984ilj.177.1620085121586; Mon, 03 May 2021 16:38:41 -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 u4sm6236737iln.36.2021.05.03.16.38.40 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 03 May 2021 16:38:40 -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: [BUG] getopts OPTIND From: dana In-Reply-To: <20210420213104.GB1035@tarpaulin.shahaf.local2> Date: Mon, 3 May 2021 18:38:39 -0500 Cc: Zsh hackers list , franciscodezuviria@gmail.com Content-Transfer-Encoding: quoted-printable Message-Id: References: <0877C4E8-4CA3-453F-A16B-99E576F60E8D@dana.is> <20210414130802.GF3882@tarpaulin.shahaf.local2> <1EB88C27-FA4E-4B1F-AEBD-15C2FFC21F95@dana.is> <20210420213104.GB1035@tarpaulin.shahaf.local2> To: Daniel Shahaf X-Mailer: Apple Mail (2.3608.120.23.2.4) X-Seq: 48779 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 20 Apr 2021, at 16:31, Daniel Shahaf wrote: > Yeah, but OPTIND still gets printed, so it does test *something*. That's true. I'm not sure what guarantees there are about the state of = OPTIND when this test runs, though, so i ended up leaving it out. We can add it = later if you want Anyway, i've committed this now, with the rest of the feedback + a = mention in README. Sorry i lost track of it before dana