delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT 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 AT users DOT sourceforge DOT 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 AT cygwin DOT com |
Subject: | [1.7] Case-sensitive programs exist but cannot both be run |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |