bug-make
[Top][All Lists]
Advanced

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

[bug #54816] $(wildcard ...) function does not report dangling symlinks


From: David Boyce
Subject: [bug #54816] $(wildcard ...) function does not report dangling symlinks
Date: Wed, 10 Oct 2018 09:32:49 -0400 (EDT)
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36

URL:
  <https://savannah.gnu.org/bugs/?54816>

                 Summary: $(wildcard ...) function does not report dangling
symlinks
                 Project: make
            Submitted by: boyski
            Submitted on: Wed 10 Oct 2018 01:32:48 PM UTC
                Severity: 3 - Normal
              Item Group: Documentation
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
       Component Version: SCM
        Operating System: POSIX-Based
           Fixed Release: None
           Triage Status: None

    _______________________________________________________

Details:

According to the manual the wildcard function "is replaced by a
space-separated list of names of existing files ...". However, it does not
find a symbolic link which exists but does not point to an existing file
(apparently wildcard uses stat, not lstat). It's not clear to me whether this
is a code or a documentation bug but it ought to be clarified in the doc at
the least. Here's a test case:

% ls -lrt
total 4
-rw-rw-r-- 1 xxxxxxx users 42 Oct 10 06:24 Makefile
lrwxrwxrwx 1 xxxxxxx users 11 Oct 10 06:24 yes -> /etc/passwd
lrwxrwxrwx 1 xxxxxxx users  9 Oct 10 06:25 no -> /etc/asdf

% cat Makefile
$(info FOUND: $(wildcard yes no))
all:;@:

% make
FOUND: yes




    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?54816>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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