From: Ismael Luceno <ismael@iodev.co.uk>
To: musl@lists.openwall.com
Subject: Re: [PATCH v2] glob: implement GLOB_TILDE
Date: Thu, 25 Jul 2019 17:39:01 +0200 [thread overview]
Message-ID: <20190725153901.GA32715@pirotess.home> (raw)
In-Reply-To: <20190725143024.GL1506@brightrain.aerifal.cx>
On 25/Jul/2019 10:30, Rich Felker wrote:
<...>
> > I think:
> > - ENOMEM should map to NOSPACE.
> > - a closer look reveals that all other errors should map to NOMATCH.
>
> None of the three error codes are really good, but NOMATCH is probably
> best. GLOB_ABORTED may be more appropriate with GLOB_ERR set (to allow
> application to distinguish between an error processing the glob and
> simple nonexistence of matches). Thoughts?
Other implementations happily expand to a literal '~', so I guess we
could keep things simple and return NOMATCH.
--
Ismael Luceno
http://iodev.co.uk/
prev parent reply other threads:[~2019-07-25 15:39 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-24 21:33 Ismael Luceno
2019-07-25 3:48 ` Rich Felker
2019-07-25 10:33 ` Ismael Luceno
2019-07-25 14:30 ` Rich Felker
2019-07-25 15:39 ` 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:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190725153901.GA32715@pirotess.home \
--to=ismael@iodev.co.uk \
--cc=musl@lists.openwall.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/musl/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).