zsh-users
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: Dennis Haney <davh@davh.dk>
Cc: zsh-users <zsh-users@sunsite.dk>
Subject: Re: range in parameter
Date: Mon, 8 Apr 2002 14:15:17 -0700 (PDT)	[thread overview]
Message-ID: <Pine.LNX.4.44.0204081412110.31766-100000@ns1.sodaware.com> (raw)
In-Reply-To: <3CB20607.5030807@davh.dk>

On Mon, 8 Apr 2002, Dennis Haney wrote:

> _arguments  \
>         {'(-v)--volume','(--volume)-v'}"[Set audio volume to N
> (0-100)]:volume:" \
>
> But how do I specify that all number between 0 and 100 are valid params
> without having to type all 100?

Like this:

_arguments  \
    {'(-v)--volume','(--volume)-v'}"[...]:volume:({0..100})"
                                                 ^^^^^^^^^^

That's not using any special _arguments magic, by the way.  The {0..100}
form is expanded anywhere regular brace expansion applies.


      reply	other threads:[~2002-04-08 21:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-08 21:05 Dennis Haney
2002-04-08 21:15 ` Bart Schaefer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.LNX.4.44.0204081412110.31766-100000@ns1.sodaware.com \
    --to=schaefer@brasslantern.com \
    --cc=davh@davh.dk \
    --cc=zsh-users@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).