X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 	tests=AWL,BAYES_00,SPF_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <4AD7F017.5080609@users.sourceforge.net>
Date: Thu, 15 Oct 2009 23:01:27 -0500
From: "Yaakov (Cygwin/X)" <yselkowitz@users.sourceforge.net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.4pre) Gecko/20090915 Thunderbird/3.0b4
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: [1.7] Case-sensitive programs exist but cannot both be run
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

It appears that two EXEs can coexist (with the registry setting) but 
only whichever one was so named first will be run:

$ cat > lower.c <<EOF
#include <stdio.h>
int main(void) { printf("I am a lower-case a\n"); return 0; }
EOF

$ cat > upper.c <<EOF
#include <stdio.h>
int main(void) { printf("I am an UPPER-case A\n"); return 0; }
EOF

$ gcc -o A.exe upper.c

$ gcc -o a.exe lower.c

$ ls
A.exe*  a.exe*  lower.c  upper.c

# note that A.exe was created first

$ ./A.exe
I am an UPPER-case A

$ ./a.exe
I am an UPPER-case A

# Say what?

$ mv A.exe A2.exe; mv A2.exe A.exe

# now a.exe was there first, let's try again...

$ ./a.exe
I am a lower-case a

$ ./A.exe
I am a lower-case a

# Oh really?

$ cat > B <<EOF
#!/bin/sh
echo "I am an UPPER-case B"
EOF

$ cat > b <<EOF
#!/bin/sh
echo "I am a lower-case b"
EOF

$ chmod +x B b

$ ls
A.exe*  B*  a.exe*  b*  lower.c  upper.c

$ ./B
I am an UPPER-case B

$ ./b
I am a lower-case b

Bug?  Limitation?  If it hurts, don't do that?


Yaakov


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

