From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19767 invoked by alias); 20 Jun 2015 17:03:43 -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: 35543 Received: (qmail 11649 invoked from network); 20 Jun 2015 17:03:40 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2 autolearn=ham autolearn_force=no version=3.4.0 X-Originating-IP: [80.3.228.158] X-Spam: 0 X-Authority: v=2.1 cv=RLtOZNW+ c=1 sm=1 tr=0 a=P+FLVI8RzFchTbbqTxIDRw==:117 a=P+FLVI8RzFchTbbqTxIDRw==:17 a=kj9zAlcOel0A:10 a=NLZqzBF-AAAA:8 a=pGLkceISAAAA:8 a=sOwNFV9mZ-qv7SykbeAA:9 a=CjuIK1q_8ugA:10 Date: Sat, 20 Jun 2015 18:03:35 +0100 From: Peter Stephenson To: zsh-workers@zsh.org Subject: Re: PATCH: Step two seems to take us there Message-ID: <20150620180335.04cc40c7@ntlworld.com> In-Reply-To: <1434768488-15196-1-git-send-email-mikachu@gmail.com> References: <1434768488-15196-1-git-send-email-mikachu@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Sat, 20 Jun 2015 04:48:08 +0200 Mikael Magnusson wrote: > This change on top of the previous one seems to make things work when > the foo in ~[foo] has a / in it. I'm not sick enough to try and make a \] > in there work. >... > - pre="${pre#*/}" > - orig="${orig#*/}" > + pre="${${pre#\~\[[^]]#]}#*/}" > + orig="${${orig#\~\[[^]]#]}#*/}" >... You might want a backslash before the last "]". (I think one works "to guide the eye" but isn't necessary before the one after the "^".) pws