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

Re: [PATCH] scp distinguish local file from remote file



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 '[^./][^/]#:'?

-- 
Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
Web page now at http://homepage.ntlworld.com/p.w.stephenson/



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