Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATCH: _pon, poff



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