[Top][All Lists]

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

Re: [PATCH] doc: note that $(wildcard) is implemented in terms of glob(3

From: Jouke Witteveen
Subject: Re: [PATCH] doc: note that $(wildcard) is implemented in terms of glob(3)
Date: Fri, 3 Dec 2021 17:03:28 +0100

On Fri, Dec 3, 2021 at 3:19 PM Ævar Arnfjörð Bjarmason <avarab@gmail.com> wrote:
> The motivation for this patch is that I've seen code like this in the
> wild:
>     FILES = $(sort $(wildcard t*.sh))
> I thought that it would be documented that that sort of thing was
> redundant, but I didn't find any mention of it in the manual.

Just for reference, the output of $(wildcard) wasn't sorted before
make 4.3. As stated in the relevant bug report:
the code you spotted in the wild is in fact the most portable use of
wildcard when the order matters.

- Jouke

reply via email to

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