Follow-up Comment #3, bug #57962 (project make): This is a test which reproduces the bug. The bug only manifests when USE_POSIX_SPAWN is defined.
regards, Dmitry diff --git a/tests/scripts/features/exec b/tests/scripts/features/exec index 91181f4..3e6c3fa 100644 --- a/tests/scripts/features/exec +++ b/tests/scripts/features/exec @@ -60,4 +60,20 @@ SHELL = #PERL# all:; @printf "$(ANSWER)\n"; !, "ANSWER='$answer'", "$answer\n"); + +# test 16 +# Use sh as a shell, but create a directory called 'sh' in PATH. +# https://savannah.gnu.org/bugs/?57962. +mkdir("mybin", 0700); +mkdir("mybin/sh", 0700); +run_make_test(q! +SHELL:=sh +PATH:=mybin:$(PATH) +all:; @printf "$(ANSWER)\n" +!, "ANSWER='$answer'", "$answer\n"); + +rmdir("mybin/sh"); +rmdir("mybin"); + + 1; _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?57962> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/