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.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 20128 invoked from network); 27 Oct 2021 21:22:48 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 27 Oct 2021 21:22:48 -0000 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:Message-ID:Date:Content-ID: Content-Type:MIME-Version:Subject:To:References:From:In-reply-to:cc:Reply-To: Content-Transfer-Encoding:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=y+rqKQ9uomII5rrPzpwsFkuLWEg4awUsw8n5iiZX7Gk=; b=lGxcbXrt09Xl4qDsHiv9n76iYr Clq3LkiyP1mBpv6M0WtHoE07PiGqqIdib7NotnQtJVyqbM0+vz8eBGkDMz5RHlHtTfmwTnuVIPoBo 4gBz49fhIJz6mJE9G9GFs8eAe0TDvWg+EdxXzbzUvttPzx/8x7Rgd0XQj7E0pwKEJ7wVI76arBEzA DQgMajO/Yaw5KmWvaB7pKOZsaCGPO/TYBQOvLPP414L+742nTXOxMKjB3ZBQ9B6SotBOLEFNzryDj bhN5ohD1NkqhRohjSckp8HR8exEG3lTp5aT4N2Gari//kbeMw+1J2xnZJqhuqjHEfDmDexKt8OZpj jwoKD8vw==; Received: from authenticated user by zero.zsh.org with local id 1mfqNk-000JuA-CW; Wed, 27 Oct 2021 21:22:48 +0000 Received: from authenticated user by zero.zsh.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1mfqNF-000JEa-0o; Wed, 27 Oct 2021 21:22:17 +0000 Received: from [192.168.178.21] (helo=hydra) by mail.kiddle.eu with esmtp(Exim 4.94.2) (envelope-from ) id 1mfqNE-000NTK-Ie; Wed, 27 Oct 2021 23:22:16 +0200 cc: zsh-users@zsh.org In-reply-to: From: Oliver Kiddle References: To: Roger Mason Subject: Re: zparesopts odd behaviour MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <90228.1635369736.1@hydra> Date: Wed, 27 Oct 2021 23:22:16 +0200 Message-ID: <90229-1635369736.574681@2LDn.bDIk.puks> X-Seq: 27297 Archived-At: X-Loop: zsh-users@zsh.org Errors-To: zsh-users-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-users-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: On 2 Sep, Roger Mason wrote: > ./testopts.sh --sc1 5.5 --sc2 5.5 --sc3 8.0 --sc 1.5 zparseopts allows values to appear immediately after the option. So --sc3 is taken as being the same as --sc 3 So it thinks you have four --sc options and only the last is kept. zparseopts was designed for splicing up options to completion functions where it is common to change them before passing a subset on to other functions. It may not be ideally suited to other situations. Oliver