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

Re: Pattern matching: backslash escaping not active in pattern passed from variable



On Mon, May 18, 2015 at 5:07 AM, Martijn Dekker <martijn@xxxxxxxx> wrote:
> Peter Stephenson's patch for case pattern matching applied cleanly
> against the latest git code and is working perfectly. Many thanks.
>
> There is another snag I've found in pattern matching, which seems to
> have survived this patch: backslash escaping does not seem match the
> standard if a glob pattern is passed from a variable or parameter. The
> standard says:
[...]
> In any case, I would expect backslash escaping to work the same way
> whether the glob pattern is passed from a variable or parameter or not.

see the GLOB_SUBST option.

-- 
Mikael Magnusson



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