Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Unexpected behavior for completion funcion _remote_files()
- X-seq: zsh-workers 39196
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: Unexpected behavior for completion funcion _remote_files()
- Date: Tue, 6 Sep 2016 22:16:24 +0000
- Cc: Yoshio Hanawa <y@xxxxxx>
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= daniel.shahaf.name; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=JmjXeGMOHn2TyyXUJHzb70aLF/E=; b=UIn5Qi pYiCq0QsZXQTqNF1X5+Jdp/CovwnI5ojeWAv+W0sYshfIokpUDcJfsShjYUxAEg+ RXgwzgW1tycZQjr53nDQL+EgL/q7Kl9K3bsZMmM6ZPpbBXxrRevsDOJ7t6GP7/wX cET1M0nGfOyFf8d2zeLrRBvC6iOKSSjIV2Klo=
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=smtpout; bh=JmjXeGMOHn2TyyXUJHzb70aLF/E=; b=gdenX TfLU6nQXM43fs8l/HHrW8nSggb82rw6x3SZ28iwYt8N15R+s9InuPd5fZWpQDpeo SZXPdNZYTJGcAO7cuw5nNAKtuJe3DI/1FBghcIGkjw49W/p4Z7tuzT/Lz9C3yviV 0Jc6C8wcB0QIWtjD6A5lvox/dPodz/160FpoNY=
- In-reply-to: <95820.1473177359@hydra.kiddle.eu>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CA+JhjB_Ry--Va9-Vz4z_6V7iEeEpJ2UbdAsFJFPe7vYcknB60A@mail.gmail.com> <95820.1473177359@hydra.kiddle.eu>
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