Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Pattern matching: backslash escaping not active in pattern passed from variable
- X-seq: zsh-workers 35179
 
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
 
- To: Martijn Dekker <martijn@xxxxxxxx>
 
- Subject: Re: Pattern matching: backslash escaping not active in pattern passed from variable
 
- Date: Mon, 18 May 2015 10:33:31 +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=INPJLHMsmlyta8xyA3j1nQZtYTplR6GJp7giyDLNMBY=;        b=Vo7Ag1nku1GARnObr5ADOuOdHalHwh+Xp/V6P7zaR/B5fpaWJ1125KQhgJIxhBem2e         iFPuvrBVcnTMOjEkChqVxTh8Xq/WWyN6IkVs73mKAdgJ3U3GYR1Xr+AGZvSDzN+EFptU         Hr+wkW/JVV/rW6YMHzPFgMNZEND/Cf7Kp17k645Zp1bCNxHUro0X7SG+SqFhqZDXonJR         Win47OFgJIAX9kcBJJwuAqVMeD4IfAvvZJtl5qLQUZ7GYQ5OQpBBNllt/F7pHVtxax4m         dqPhPuctXY2WDnGxV3kKyscSiJB7OJhv+BfAL8vFeFSidjH4nh0tFe9LHDO8vkauB9b2         OSYQ==
 
- In-reply-to: <5559577C.1060906@inlv.org>
 
- 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: <5559577C.1060906@inlv.org>
 
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