bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [patch] glob. If pattern has a trailing slash match directories only


From: Dmitry Goncharov
Subject: Re: [patch] glob. If pattern has a trailing slash match directories only
Date: Mon, 18 Nov 2019 08:37:49 -0500

Good morning.

On Mon, Nov 18, 2019 at 1:05 AM Paul Eggert <address@hidden> wrote:
> Did you intend to attach a new version of the patch
> to the above-quoted email, or was that email merely commenting on the patch 
> you
> sent on November 12 
> <https://lists.gnu.org/r/bug-gnulib/2019-11/msg00023.html>?

i intended to attach a new version of the patch.
The difference from the previous version is in handling of
GLOB_NOCHECK and GLOB_NOMAGIC.
This patch has a bit of new code to handle GLOB_NOCHECK and
GLOB_NOMAGIC right after we filter out files.
It is possible though to replace this new piece of code with goto
no_matches. What do you think?
In addition to the trailing slash fix this patch also fixes glob ("",
GLOB_NOMAGIC, ...).

regards, Dmitry

Attachment: match_slash_explicitly5.diff
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]