Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: _pon, poff
- X-seq: zsh-workers 22926
- From: Jörg Sommer <joerg@xxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: PATCH: _pon, poff
- Date: Sun, 29 Oct 2006 12:46:14 +0000 (UTC)
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <20061007085059.GA16931@xxxxxxxxxxx>
- Sender: news <news@xxxxxxxxxxxx>
Hello Clint,
Clint Adams <clint@xxxxxxx> wrote:
> -provider=(/etc/ppp/peers/*(:t))
> +case "$service" in
> + (pon)
>
> _arguments \
> '(-q --quick)'{-q,--quick}'[hangs up after all ip-up scripts are run]' \
> - '1:provider to call:(${provider[@]})'
> + '1:provider to call:_files -W /etc/ppp/peers'
Only for my understanding: Why you can use _files here? Doesn't this tag
the completions as files even though they are hosts? Does this cause any
problems?
Bye, Jörg.
--
Ich halte ihn zwar für einen Schurken und das was er sagt für
falsch – aber ich bin bereit mein Leben dafür einzusetzen, daß
er seine Meinung sagen kann. (Voltair)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author