From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4372 invoked by alias); 19 Mar 2013 20:59:54 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 31168 Received: (qmail 25736 invoked from network); 19 Mar 2013 20:59:53 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 Received-SPF: neutral (ns1.primenet.com.au: 74.125.82.180 is neither permitted nor denied by SPF record at ntlworld.com) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:x-proxyuser-ip:date:from:to:subject:message-id :in-reply-to:references:x-mailer:mime-version:content-type :content-transfer-encoding:x-gm-message-state; bh=UpV1ajBCPl8L/juBdww0PZ02rvYFHjqgEe0ltwINqb8=; b=L0vXvNDqMn24fzMzTJa5qtlZ9s/hQLdYIcjEMEfs6vL8BWgLxZy21U10a5UeC7eDCE K/yRA/aNRMJPmBdVgxZVrj8PQnTL+aEDsacFLs4SjsL36JxPkiE4CRDAU3VN/XY6yY65 PhpuyeJaNgnXE2rwRD1aJofxd+Kf3XjQaSvNBWmH9PByRVRt2sIcsOhPzuCYagRiQjl+ UUikdfsgzQQc7g158OQnKONykehfqg8XLwh0PiIMWElK0jaVSJotxwA4uFlT6eA2l+6l Mqma9JcIHiOrpRzmgSAngLij++FiAv5ZTsnZ7yXV+BTj7CSfyXBTuD9n52bFquXJYXn6 83Lg== X-Received: by 10.180.13.34 with SMTP id e2mr1282497wic.29.1363726781937; Tue, 19 Mar 2013 13:59:41 -0700 (PDT) X-ProxyUser-IP: 86.26.6.143 Date: Tue, 19 Mar 2013 20:59:39 +0000 From: Peter Stephenson To: zsh-workers@zsh.org Subject: Re: [PATCH] scp distinguish local file from remote file Message-ID: <20130319205939.328e9010@pws-pc.ntlworld.com> In-Reply-To: <20130319093359.GA21738@localhost.localdomain> References: <20130319093359.GA21738@localhost.localdomain> X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.7; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQklG5FnCBbZM3y53aRdvBFMn8J4zNiWGKkDEerG2ulOdPovFr2irYcqXq/8hDqgXO66VLEw On Tue, 19 Mar 2013 17:33:59 +0800 Han Pingtian 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 Web page now at http://homepage.ntlworld.com/p.w.stephenson/