Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date: Thu, 25 Jul 2019 17:39:01 +0200
From: Ismael Luceno <ismael@...ev.co.uk>
To: musl@...ts.openwall.com
Subject: Re: [PATCH v2] glob: implement GLOB_TILDE

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/

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.