mailing list of musl libc
 help / color / mirror / Atom feed
From: Ismael Luceno <>
Cc: Rich Felker <>
Subject: Re: [musl] [PATCH] glob: implement GLOB_NOMAGIC
Date: Sun, 15 Aug 2021 19:36:55 +0200
Message-ID: <YRlQt+lhBpW+mGTe@pirotess> (raw)
In-Reply-To: <20190727135917.GA16881@pirotess.home>

On 27/Jul/2019 15:59, Ismael Luceno wrote:
> 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.
> :-).


This is used in combination with GLOB_NOESCAPE by csh implementations
to implement their globbing behavior; I added it for completeness,
it's very small, and it saves quite some disk space in the csh binary,
by not having to bundle another glob implementation.

While AFAIK it's always used in combination with GLOB_NOESCAPE, I see
no reason to enforce that.

      reply	other threads:[~2021-08-15 17:37 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-26 23:48 Ismael Luceno
2019-07-27  2:39 ` Rich Felker
2019-07-27 13:59   ` Ismael Luceno
2021-08-15 17:36     ` Ismael Luceno [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=YRlQt+lhBpW+mGTe@pirotess \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

mailing list of musl libc

This inbox may be cloned and mirrored by anyone:

	git clone --mirror

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V1 musl musl/ \
	public-inbox-index musl

Example config snippet for mirrors.
Newsgroup available over NNTP:

code repositories for the project(s) associated with this inbox:

AGPL code for this site: git clone