Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] scp distinguish local file from remote file
On Tue, Mar 19, 2013 at 08:59:39PM +0000, Peter Stephenson wrote:
> On Tue, 19 Mar 2013 17:33:59 +0800
> Han Pingtian <hanpt@xxxxxxxxxxxxxxxxxx> wrote:
> > If a file path starting with a '.' or '/', then it should be a local
> > file/dir, even if there are colons in the path.
>
> Right. In fact, any slash before the colon should have that effect,
> shouldn't it?
>
> > - if compset -P '*:'; then
> > + if compset -P '[^./]*:'; then
>
> So maybe the pattern could be '[^./][^/]#:'?
>
Yeah, it is true. Thanks for the correction.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author