Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] scp distinguish local file from remote file
- X-seq: zsh-workers 31168
- From: Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: [PATCH] scp distinguish local file from remote file
- Date: Tue, 19 Mar 2013 20:59:39 +0000
- In-reply-to: <20130319093359.GA21738@localhost.localdomain>
- 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: <20130319093359.GA21738@localhost.localdomain>
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