Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Reply-To: From: "Francis Litterio" To: Subject: Bug: Bash fails to execute script w/ same name as W2K program (despite proper PATH ordering) Date: Thu, 4 Oct 2001 13:36:56 -0400 Message-ID: <000701c14cfb$2ab17620$4500f98c@EMMAROSE> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Importance: Normal Using Bash 2.05.0(8) under Cygwin 1.3.1-1, a shell script named the same as a program in c:\winnt\system32 is not executed, even if it is in a directory that appears ahead of /cygdrive/c/WINNT/system32 in the value of PATH. To reproduce: bash$ hash -r bash$ type -a ipconfig ipconfig is /cygdrive/c/WINNT/system32/ipconfig bash$ ipconfig Windows 2000 IP Configuration Ethernet adapter Local Area Connection: Connection-specific DNS Suffix . : pyxsys.net IP Address. . . . . . . . . . . . : 140.249.0.69 Subnet Mask . . . . . . . . . . . : 255.255.0.0 Default Gateway . . . . . . . . . : 140.249.0.249 bash$ cat > /tmp/ipconfig #!/bin/sh echo foobar ^D bash$ PATH="/tmp:$PATH" bash$ hash -r bash$ ipconfig Windows 2000 IP Configuration Ethernet adapter Local Area Connection: Connection-specific DNS Suffix . : pyxsys.net IP Address. . . . . . . . . . . . : 140.249.0.69 Subnet Mask . . . . . . . . . . . : 255.255.0.0 Default Gateway . . . . . . . . . : 140.249.0.249 bash$ /tmp/ipconfig foobar -- Francis Litterio Software Engineer Pyxsys Corproration litterio AT pyxsys DOT net 978-371-9115 x131 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/