bug-make
[Top][All Lists]
Advanced

[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: Dmitry Goncharov
Subject: Re: [PATCH] doc: note that $(wildcard) is implemented in terms of glob(3)
Date: Fri, 3 Dec 2021 10:48:35 -0500

On Fri, Dec 3, 2021 at 9:19 AM Ævar Arnfjörð Bjarmason <avarab@gmail.com> wrote:
>
> The $subject isn't strictly true, as the it's implemented in terms of
> MatchFirst() on Amiga, but that's obscure enough to not be noted in
> the manual

Then the manual will be lying to the users of amiga, right?

> and in any case the tests added in 0d366b66 (* Added the
> test suite to the main distribution., 1999-09-14) show that the output
> is sorted on all platforms GNU make has been tested on.

The tests don't verify that the output is sorted. It is just that this
input in the test results in this output.
Implementation may change (e.g. for performance reasons) to avoid
sorting and the tests will be updated accordingly.

Furthermore, a different input can result in not sorted output.

$ ls
1  2  3  makefile
$ cat makefile
files:=$(wildcard 2 1 3)
all:; $(info $(files))
$ make
2 1 3
make: 'all' is up to date.
$


> Aside: I found it difficult to figure out how to submit patches to
> this project.

https://savannah.gnu.org/bugs/?group=make&func=additem

regards, Dmitry



reply via email to

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