Date: Mon, 9 Jan 2023 08:24:51 +0000 From: "(GalaxyMaster)" <galaxy@...nwall.com.au> To: musl@...ts.openwall.com Subject: Re: is fnmatch() a bit broken? Rich, On Mon, Jan 09, 2023 at 03:09:20AM -0500, Rich Felker wrote: > On Mon, Jan 09, 2023 at 07:57:56AM +0000, (GalaxyMaster) wrote: > > Which brings a question on the "[1\]] [1\]]" use case not matching "1 ]". If I > > read your response correctly, it is expected to actually match on musl, did I > > get it wrong? > > It's been a while since I looked at these, but the key thing is that ] > is not a special character. Only *, ?, and [ are special. ] is just > part of the bracket syntax once the bracket is open, and IIRC \] is > identical to ], closing the bracket. The subsequent ] is then outside > the bracket and matches itself (mismatch here). Makes a lot of sense. As always, your response was precise and very valuable. Thank you for your time and patience! :) -- (GM)
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.