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=-1.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, 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 35d10762 for ; Mon, 26 Aug 2019 17:40:35 +0000 (UTC) Received: (qmail 2016 invoked by alias); 26 Aug 2019 17:39:40 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: List-Unsubscribe: X-Seq: 24189 Received: (qmail 5388 invoked by uid 1010); 26 Aug 2019 17:39:40 -0000 X-Qmail-Scanner-Diagnostics: from mail-io1-f54.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.101.2/25552. spamassassin: 3.4.2. Clear:RC:0(209.85.166.54):SA:0(-1.9/5.0):. Processed in 1.621539 secs); 26 Aug 2019 17:39:40 -0000 X-Envelope-From: dana@dana.is X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.166.54 as permitted sender) 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=mY9cHxoZ0/oJ/eAkV/2m9Vq6+l6d33gd0zgUv2k/tBw=; b=PW5k3ds4k1wBPBdEqi2iEr5idhNf75P4sN9sfMtNU24JiUcizJzqwLLbK6IC0xEeT4 8AU4Qlfg7xEflQ++49jH/pwYKzO1V1OEXzBCJeLx4LJy8c2Qmh6qaaAqpx7dtqf/Tkfs 0g8uTIoow7ioEKYhk7IrBR8IefgR4LkaeLRIIjCogz+uqO96XPPj2WvWKCsCcnlSqzM+ +b+l9AX/V+FWq+hTOoW93vBB3zfCxf0wGpvzLjK0G2GfU4+4bdDwPGZ0K0+UEUIoFNgm J3mTW9368YyQBYaMSPzRV7ook0YB3KZvuj1UO5wFh5XI8QhfthfFMeNiYfHzLodfR+jn et5g== 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=mY9cHxoZ0/oJ/eAkV/2m9Vq6+l6d33gd0zgUv2k/tBw=; b=ZUPrC6htfA7sypA3TjxRNiqxgZDSym9LHWq1YOn/Z0gb4X3uk5sVq1f9JsOzN/+VAV hjfqIUPJ1Yj0JFw81d5jkQgM/8bbrMrkRaZNwELyDRE8bn4rbzoW6Y475G7JncMVZ8YX uBtHFBTf72KHmQ53B5CnpYluyw/p8kVbM011Kp6+gQr3FgSkBPRDraBTE9rKH0CcVBYu FpiC1jXzrp0wzC47YADnpmx7/PFz+XXz0s//1uzVohqzHrx7AyaGz7DzbvimtpA1U4i0 zW+W+TFORc2RyRdiHQBFyt8vP+sQ7fTR7CBTVMZg4KbWZAifg45aVFPjF+QcLUZ4Lq7U mmlg== X-Gm-Message-State: APjAAAVypUF+XDLYg2anu3hfkX5MAJx62SakF8qlPtC4aUGC6GFl3wRJ RWizwxvFAC1NHvNapZ3Td/7Ofw== X-Google-Smtp-Source: APXvYqz935zGaSeyjHU509wa8UXu3G83LmdKkHU2WhdxEbnlGvNILAP4JYg35EN4mdtvHVfVJFIj1A== X-Received: by 2002:a5e:aa12:: with SMTP id s18mr1664645ioe.216.1566841144953; Mon, 26 Aug 2019 10:39:04 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: Re: Complete value from list with colons From: dana In-Reply-To: Date: Mon, 26 Aug 2019 12:39:03 -0500 Cc: zsh-users@zsh.org Content-Transfer-Encoding: quoted-printable Message-Id: <52014FCF-FD01-4FFB-8E8D-D567DA7FE0E7@dana.is> References: <8e5ab665-a4fb-4c75-a4a4-0a0734148b71@www.fastmail.com> <43968-1566695897.640296@MmkN.TxK5.ExqF> To: Scott Frazer X-Mailer: Apple Mail (2.3445.104.11) On 26 Aug 2019, at 08:34, Scott Frazer wrote: > _arguments : '--foo[Which foo to use]:foo:_values whatever 'a\:\:b' = 'c\:\:d' > > i.e. the --foo option has a limited number of legal values. What = would you > suggest I use here? If you're using _arguments you can just do like: '--foo[specify foo to use]:foo:(a\:\:b c\:\:d)' You can also use this syntax to give each value a description: '--foo[specify foo to use]:foo:(( a\\\:\\\:b\:"ab foo" c\\\:\\\:d\:"cd foo" ))' Though it gets somewhat confusing when you have colons in the values, as = you can see dana