[PATCH] Fix glob with empty pattern and patterns ending in slash

Andreas Schwab schwab@redhat.com
Thu Mar 25 10:07:00 GMT 2010


Ulrich Drepper <drepper@redhat.com> writes:

> What is the issue with trailing slashes?

It's inconsistent.  Globbing with "*/" returns only directories, but
"**/" or "?*/" returns all files with directories marked.  Either result
could be the intented one, but IMHO the first one is more useful, and
consistent with globbing in bash and other shells.

Andreas.

-- 
Andreas Schwab, schwab@redhat.com
GPG Key fingerprint = D4E8 DBE3 3813 BB5D FA84  5EC7 45C6 250E 6F00 984E
"And now for something completely different."



More information about the Libc-hacker mailing list