URL: <https://savannah.gnu.org/bugs/?57962>
Summary: apparent regression involving PATH resolution Project: make Submitted by: misfit Submitted on: Fri 06 Mar 2020 04:24:40 AM UTC Severity: 3 - Normal Item Group: None Status: None Privacy: Public Assigned to: None Open/Closed: Open Discussion Lock: Any Component Version: None Operating System: None Fixed Release: None Triage Status: None _______________________________________________________ Details: I submitted the following to bug-make@gnu.org but didn't hear back. Apologies if this is a duplicate, as I couldn't figure out how to search outstanding Make bugs in Savannah. ---------------- A recent change broke use of Perl in Makefiles for me. This is because I have a PATH element with a directory called 'perl'. Here is how to reproduce it: $ sudo pacman -U /var/cache/pacman/pkg/make-4.2.1-4-x86_64.pkg.tar.xz ... $ mkdir -p mybin/perl $ cat Makefile PATH=mybin:/usr/bin/ all: which perl perl -le 'print "HELLO"' $ make which perl /usr/bin/perl perl -le 'print "HELLO"' HELLO $ sudo pacman -U /var/cache/pacman/pkg/make-4.3-1-x86_64.pkg.tar.zst ... $ make which perl /usr/bin/perl perl -le 'print "HELLO"' make: perl: Permission denied make: *** [Makefile:5: all] Error 127 As you can see, the problem occurs with Make 4.3.1 but not 4.2.1. _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?57962> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/