[Top][All Lists]

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

Re: $(wildcard ...*/) and symlinks

From: Dmitry Goncharov
Subject: Re: $(wildcard ...*/) and symlinks
Date: Fri, 24 Feb 2023 10:05:24 -0500

On Fri, Feb 24, 2023 at 6:55 AM Frank Heckenbach
<f.heckenbach@fh-soft.de> wrote:
> So "*/" ignores the symlink to a file as expected, but "l*/" does
> return it, likewise "*/*/" which doesn't make much sense to me.

There is a known bug in glibc glob impl.

$ ls
$ cat makefile
all:; $(info $(wildcard hell*/))
$ touch hello
$ ls hell*/
ls: cannot access 'hell*/': No such file or directory
$ make
make: 'all' is up to date.

The current impl of glob handles trailing slashes correctly on certain
filesystems and fails on others.
See https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00006.html

regards, Dmitry

reply via email to

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