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

Re: [patch] _ed completer



Matthew Martin wrote:
>
> +++ b/Completion/Unix/Command/_ed
> +  '(--prompt)'{-p,--prompt}'[specify prompt]:prompt: '

--prompt can exclude a following -p option and it is valid to have the
prompt immediately after -p or to have --prompt=. So, I think this line
can be:
  '(-p --prompt)'{-p+,--prompt=}'[specify prompt]:prompt'

> +  case $OSTYPE in
> +    dragonfly*|freebsd*|netbsd*)

 |solaris*

> +_arguments -s -S -A '-*' \

The -A '-*' option is not applicable to the GNU variant. It's fairly
common that GNU stuff allows options after normal arguments while
traditional Unix stuff doesn't.

Thanks

Oliver



Messages sorted by: Reverse Date, Date, Thread, Author