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

Re: scp completion

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.


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