From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/14461 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Ismael Luceno Newsgroups: gmane.linux.lib.musl.general Subject: Re: [PATCH] glob: implement GLOB_NOMAGIC Date: Sat, 27 Jul 2019 15:59:17 +0200 Message-ID: <20190727135917.GA16881@pirotess.home> References: <20190726234847.12321-1-ismael@iodev.co.uk> <20190727023951.GP1506@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="123619"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mutt/1.12.1 (2019-06-15) To: musl@lists.openwall.com Original-X-From: musl-return-14477-gllmg-musl=m.gmane.org@lists.openwall.com Sat Jul 27 15:59:35 2019 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.89) (envelope-from ) id 1hrNEU-000W1U-Lq for gllmg-musl@m.gmane.org; Sat, 27 Jul 2019 15:59:34 +0200 Original-Received: (qmail 24259 invoked by uid 550); 27 Jul 2019 13:59:30 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 24237 invoked from network); 27 Jul 2019 13:59:30 -0000 Content-Disposition: inline In-Reply-To: <20190727023951.GP1506@brightrain.aerifal.cx> Xref: news.gmane.org gmane.linux.lib.musl.general:14461 Archived-At: On 26/Jul/2019 22:39, Rich Felker wrote: <...> > The documentation for this flag is really poor. Do you know how it's > supposed to interact with escaped characters? Is it really supposed to > refuse to expand to the literal pattern when the literal pattern > contains an escaped *, ?, or [ but not a special one? It's intended for implementing csh-style globbing, which doesn't recognize escaping. I don't see any reason to enforce GLOB_NOESCAPE, though. > Otherwise I think this looks ok. Nice use of strcspn. :-).