Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: scp completion
- X-seq: zsh-workers 17614
- From: Oliver Kiddle <okiddle@xxxxxxxxxxx>
- To: Thomas Köhler <jean-luc@xxxxxxxxxxxxxxxxx>
- Subject: Re: scp completion
- Date: Tue, 3 Sep 2002 17:24:18 +0100
- Cc: zsh-workers@xxxxxxxxxx
- In-reply-to: <20020903152023.GA8799@xxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <20020902163741.GA2240@xxxxxxxxxxxxxxxxx> <E17m9a1-0005kq-00@xxxxxxxxxxxxxxxxxx> <20020903151052.GA6194@xxxxxxxxxxxxxxxxx> <20020903152023.GA8799@xxxxxxxxxxxxxxxxx>
- Sender: Oliver Kiddle <kiddleo@xxxxxxxxxx>
On Tue, Sep 03, 2002 at 05:20:23PM +0200, Thomas Köhler wrote:
> + _remote_files ${(kv)opt_args[(I)-[FP1246]]/-P/-p} && ret=0
> Now - scp completion didn't work for me - until I used
>
> scp -F /home/jean-luc/.ssh/config.special -P 2222 tkoehler@localhost:
>
> instead of
>
> scp -F ~/.ssh/config.special -P 2222 tkoehler@localhost:
>
> How can I avoid the "~" problem?
For the above line, you need:
_remote_files ${(kv)~opt_args[(I)-[FP1246]]/-P/-p} && ret=0
The difference being the `~' before opt_args which turns on glob_subst
for the evaluation.
I'll commit the patch with this addition.
Oliver
This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author