[Top][All Lists]

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

[bug #57962] apparent regression involving PATH resolution

From: Dmitry Goncharov
Subject: [bug #57962] apparent regression involving PATH resolution
Date: Fri, 6 Mar 2020 22:40:51 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0

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);                                                     
+all:; @printf "$(ANSWER)\n"                                                  
+!, "ANSWER='$answer'", "$answer\n");                                         


Reply to this item at:


  Message sent via Savannah

reply via email to

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