Make executes a directory rather than the executable on the PATH

Bug #2039969 reported by Alexander
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
make (Ubuntu)
New
Undecided
Unassigned

Bug Description

Description: Ubuntu 23.04
Release: 23.04

make:
  Installed: 4.3-4.1build1
  Candidate: 4.3-4.1build1
  Version table:
 *** 4.3-4.1build1 500
        500 http://gb.archive.ubuntu.com/ubuntu lunar/main amd64 Packages
        100 /var/lib/dpkg/status

If there is a directory on the PATH before an executable on the PATH and the makefile has "/bin/sh" as the path (which is the default if nothing is set). Then the directory is executed instead of
For example with

test :
 foo

And with the following layout

.
 |-folder2
 | |-app
 | |-foo
 | | |-data
 |-folder1
 | |-foo
 |-makefile

If folder2 is higher priority on the path. The make will try and execute folder2/foo which will fail. If any shell is set other than /bin/sh make will use the shell instead of executing things itself and it will succeed.

This is seems to be fixed upstream in https://savannah.gnu.org/bugs/index.php?57962

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.