delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/02/08/23:42:13

X-Recipient: archive-cygwin AT delorie DOT 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 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
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 AT yandex DOT ru>
Reply-To: cygwin AT cygwin DOT com
Message-ID: <832356081.20150209072114@yandex.ru>
To: Thomas Wolff <towo AT towo DOT net>, cygwin AT cygwin DOT com
Subject: Re: execlp/execvp needs case-correct PATH
In-Reply-To: <54D7EB8E.8070308@towo.net>
References: <54D7EB8E DOT 8070308 AT towo DOT net>
MIME-Version: 1.0
X-IsSubscribed: yes
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 AT yandex DOT ru) 09.02.2015, <07:20>

Sorry for my terrible english...

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019