Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: Step two seems to take us there
- X-seq: zsh-workers 35546
 
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
 
- To: Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
 
- Subject: Re: PATCH: Step two seems to take us there
 
- Date: Sat, 20 Jun 2015 19:11:14 +0200
 
- Cc: zsh workers <zsh-workers@xxxxxxx>
 
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed;        d=gmail.com; s=20120113;        h=mime-version:in-reply-to:references:date:message-id:subject:from:to         :cc:content-type;        bh=OPz84ypil+VJgMASMUssbr4LF75yeVt7iZbwmSpxSgs=;        b=m9CZ3Zz8Qalb2dV5oFl5ZqWCOWTuA+DvQKNXj9tq56prM42TeCjC7NBB4+UukiOuTB         uoX8VdOOMchVRjERStWW9KPn6CefOY6cD6BCVRI+PUvs1Bnd71Gbn5b2xqVjGGvfBhs+         ZBuouPngkd6+CyIBmhsNQBM5DWFqH62h9sUbduSaiAMJ8PkRUnNOmDhKBw1sX1cGDhlF         jfRl333ym6o7rR0tqYZQCV4PjKJMV5tmdE8cp22X8aQMC2DqI/7W9hhp57J1LzpoUdES         4V5QJACby3QCjwB7Ny4IfwfPfylrA8hCmZpZpDvGsNg2FADg/6b9j7Unwc0dg36o02hs         C71Q==
 
- In-reply-to: <20150620180335.04cc40c7@ntlworld.com>
 
- 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: <CAHYJk3SZqG1KCRLGYPHRg+wyQ3msOKGJeuQRwn9+c65gmnQPwg@mail.gmail.com>	<1434768488-15196-1-git-send-email-mikachu@gmail.com>	<20150620180335.04cc40c7@ntlworld.com>
 
On Sat, Jun 20, 2015 at 7:03 PM, Peter Stephenson
<p.w.stephenson@xxxxxxxxxxxx> wrote:
> On Sat, 20 Jun 2015 04:48:08 +0200
> Mikael Magnusson <mikachu@xxxxxxxxx> 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 "^".)
That's probably a good idea, yeah. I noticed that I'm still getting
some "corrections: 1" with some completions, and I haven't been able
to figure out why yet. It happens even when my foo doesn't have a /
sometimes...
-- 
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author