From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id 5ad074cc for ; Sun, 23 Dec 2018 22:35:27 +0000 (UTC) Received: (qmail 6185 invoked by alias); 23 Dec 2018 22:35:09 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: List-Unsubscribe: X-Seq: 43931 Received: (qmail 17460 invoked by uid 1010); 23 Dec 2018 22:35:09 -0000 X-Qmail-Scanner-Diagnostics: from mail-vs1-f42.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.100.2/25112. spamassassin: 3.4.2. Clear:RC:0(209.85.217.42):SA:0(-2.0/5.0):. Processed in 1.399634 secs); 23 Dec 2018 22:35:09 -0000 X-Envelope-From: mkatsev@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=l398JA2lFSuHJBBcksq/9b4q+9oYUiY3GJZt7waBIP4=; b=e2xqhEwUHPF50iqiVV+ZEQoHofrT6pNR4LTPKjzKQtx6cEg3AYbQwJYUvD14RpelXp kxHDaaDoBrrv5MMBs9BSSLMFgPCgdplT8v2yJx8GnAJfAu2gMMp3EZgFDmZ3CRSZhVbd czeg5f6Wox73HcggLQ9xJGVIURQxVM7U70KywXWRLfqRYN4+yeGyW3HXmEIQ2rYDPRdC HYer6CdXYrUY4S6PUPuH973iXEBUwZi74Dtr6DxoSmje1wa42ldS0dfEN5PeCdRRHPrP TqvQ/8wDhWQE7nVXk7KkWwE/y4aZU9TvZy1ycVHKgAj0XLaXfvxF2iyvgYEC2+1WBAff XHnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=l398JA2lFSuHJBBcksq/9b4q+9oYUiY3GJZt7waBIP4=; b=PcMfO99QwQeoVcgVqyg5eHxeIH2kg42PniY49QCWhaLlnHit8rOqn9kDPFYXc/5T6K rjaeLLY2WmtyYbVycpPkqio9rlyJxR1M1fUkIDR7dbJf9UPh1xGAwhqQy2VF37RHVyIJ 5zJDTCNtpbiPA6rl+fXaIVmjl+WEHBVxFIuqU3npnvCg02jp45jSBrVuI4TKPxTn45fj u8tN39I5Dw4k5hCATI11KFh6eIUbhfWEgNr7WIeuEH4d/N4upiXlJQedu99UHUnjEdiX T3og3yI3wvYPdAGHPUB8Pa/1nDSm9yT3Y5dAjwwyPesV/Bd2YnXg07grBnRh34p4teJ/ Tc5g== X-Gm-Message-State: AA+aEWb65x5pwNPXah6FyhCGWDN/IZRc1i+4TN8zIlrvAAYMcet3R8XD JqLI5f6r3wymg6DMt2lm0S+yvy1Cpq33nCxie1mS6A== X-Google-Smtp-Source: AFSGD/XK+yVVXS95MJ08nN8nmkDOuuWS6n/wTd9OCR6AkkeZqkyt1F6IuJ9nA6JcST2jCKNPurLsbHfWEqVuUwXfaVc= X-Received: by 2002:a67:75c5:: with SMTP id q188mr4630392vsc.146.1545604503408; Sun, 23 Dec 2018 14:35:03 -0800 (PST) MIME-Version: 1.0 From: Max Katsev Date: Sun, 23 Dec 2018 14:34:54 -0800 Message-ID: Subject: possible bug in _arguments? To: zsh-workers@zsh.org Content-Type: multipart/alternative; boundary="00000000000063951b057db8179b" --00000000000063951b057db8179b Content-Type: text/plain; charset="UTF-8" I want to have completion for a command that looks like "command [optional] required" (i.e. possible completions are either "command required" or "command optional required"). My understanding is that "_arguments '::message:(optional)' ':message:(required)'" should achieve this effect. However when I'm trying to use it on zsh 5.6.2, in addition to the expected commandlines, it also allows to complete "command required required" where the required argument is repeated twice (but not more). Is this a bug or am I missing something? Is there another way to get what I want? --00000000000063951b057db8179b--