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

Re: Unexpected behavior for completion funcion _remote_files()



Oliver Kiddle wrote on Tue, Sep 06, 2016 at 17:55:59 +0200:
>  if zstyle -T ":completion:${curcontext}:files" remote-access; then
>  
>    # Parse options to _remote_files. Stops at the first "--".
>    zparseopts -D -E -a args / g:=glob h:=host
> -  shift
>    (( $#host)) && shift host || host="${IPREFIX%:}"
>  
> +  args=( ${argv[1,(I)--]} )

Should be (i), not (I), in case the [<cmd options>] themselves contain
a '--' word.



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