Make executes a directory rather than the executable on the PATH
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://
100 /var/lib/
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:/