X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:date:from:reply-to:message-id:to:subject
	:in-reply-to:references:mime-version:content-type
	:content-transfer-encoding; q=dns; s=default; b=qLfFAMQWllbmlTp4
	LR4HGMJ1Qb0Xd2uDVqfSaLfjIxR9vf7zgSgM+JBCONVpfN+6Tk3UHNDEPdRMgWdW
	PC7BlIqdD8+0S2q9P66eKD8oPbHya466Bu3MRktNf0mqYJRbr4Oo0J+CuX7FfIjw
	2EyTIsrYi125/R9rAdB4kencVKg=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:date:from:reply-to:message-id:to:subject
	:in-reply-to:references:mime-version:content-type
	:content-transfer-encoding; s=default; bh=FzXdmL5Y4dQsnlaHL2foWZ
	wMuFQ=; b=mxzFYk+JwyDQhrA3buNt2pCEsma80xEBOu6OXZND5Pu81kdm+j0vc0
	ygPnHRuAiaz8uaJdAzCiBHY3Ig83UBb8KGSKTa1m1SfB19H/WJv7v6zX79ZtYpPJ
	tjw+499XKelctM0KuymAkctPjV9XceHaF6i3LgBWnUa6j8wK9Tkrk=
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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=1.7 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,KAM_BODY_URIBL_PCCC,KAM_FROM_URIBL_PCCC,KAM_THEBAT,MIME_BASE64_BLANKS,SPF_SOFTFAIL autolearn=no version=3.3.2
X-HELO: smtp.ht-systems.ru
Date: Mon, 9 Feb 2015 07:21:14 +0300
From: Andrey Repin <anrdaemon@yandex.ru>
Reply-To: cygwin@cygwin.com
Message-ID: <832356081.20150209072114@yandex.ru>
To: Thomas Wolff <towo@towo.net>, cygwin@cygwin.com
Subject: Re: execlp/execvp needs case-correct PATH
In-Reply-To: <54D7EB8E.8070308@towo.net>
References: <54D7EB8E.8070308@towo.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
X-IsSubscribed: yes
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id t194g5Ds014057

Greetings, Thomas Wolff!

> With a Windows case sensitive file system (and according mount flags
> for /cygdrive), the PATH does not properly reflect casing of the actual
> directories (e.g. C:\WINDOWS vs. C:\Windows, thanks MS...).

NTFS is a case-insensitive, but case-preserving file system.
I'll leave it up to you to google the implications.

> However, the shell finds programs anyway, like e.g. notepad.
> The exec*p system calls, on the other hand, do not find a program in this
> case as demonstrated by the attached test program.
> This is in contrast to the Linux (and POSIX?) manual page which claims
> „The execlp(), execvp(), and execvpe() functions duplicate the actions
> of the shell in searching for an executable file …“


--
WBR,
Andrey Repin (anrdaemon@yandex.ru) 09.02.2015, <07:20>

Sorry for my terrible english...

