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

Re: PATCH: Step two seems to take us there



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 "^".)

pws



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