delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/02/09/05:30:46

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:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; q=dns; s=
default; b=tPjB0NYQ0CWWsEEs8besYrXl2QPq6p7dNfuSak1rTuV5BuZMw2MO/
maIM8U4Ok9Drc8CsoW8U6lYdMcsV/8C+3WAVggJWv6UvWssnWr5EYDBC9qzBQYKT
SiGiMUcUCocY2nCo9/XLwx7ipDtLe6aZmKbKIKwSk8UGiLCIy0KI6k=
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:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; s=default;
bh=vyf6lEkRqxxf8oe7Q6UbxYWvp98=; b=iK7aXFZcRrF4UqmJcJ72XZ/GzDmK
4O2Tb3xwVHZubZYr7pCErVxDWg+1fYkgwaYH5losqGMMEPZEZvr1KDxzZyoUQmf1
LqJYj9QBsmyc3gC4eDh+ADS7B37a6bO/CbsYbje85Pt+e5CwVGJa65hyRwOupako
ai+9U7hagFxdo6o=
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=-5.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2
X-HELO: calimero.vinschen.de
Date: Mon, 9 Feb 2015 11:17:47 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: execlp/execvp needs case-correct PATH
Message-ID: <20150209101747.GA12131@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <54D7EB8E DOT 8070308 AT towo DOT net>
MIME-Version: 1.0
In-Reply-To: <54D7EB8E.8070308@towo.net>
User-Agent: Mutt/1.5.23 (2014-03-12)

--YZ5djTAD1cGYuMQK
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Feb  9 00:04, Thomas Wolff wrote:
> 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...).
> 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
> =E2=80=9EThe execlp(), execvp(), and execvpe() functions duplicate the ac=
tions
> of the shell in searching for an executable file =E2=80=A6=E2=80=9C

I can't reproduce this.  If I change my cygdrive mounts to
case-sensitive, my shell doesn't start notepad anymore:

  $ cat /etc/fstab
  none /mnt cygdrive binary,posix=3D1,user 0 0
  $ echo $SHELL
  /bin/tcsh
  $ echo $path
  /usr/bin /mnt/c/WINDOWS/system32 /mnt/c/WINDOWS /mnt/c/WINDOWS/System32/W=
bem /mnt/c/WINDOWS/System32/WindowsPowerShell/v1.0 /usr/lib/lapack
  $ notepad
  notepad: Command not found.
  $ /mnt/c/Windows/notepad
  <works>
  $


Corinna

--=20
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

--YZ5djTAD1cGYuMQK
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBAgAGBQJU2IlLAAoJEPU2Bp2uRE+gKAoQAIp5SBrACtlpIfKzEIUPLBSS
e0sN50+dyW2diER+0VfLvyWpUIdf77EZK0d+fcsW//VzobEScXH8MS8hPpzMLYcH
lPt1W+w4/Na8jaSHPPzHlTIec7BsxhtBpjjgDv6r63P1r111DIySxjdJBRXdc5S3
08WPStMUy1FGSHYhpDZAi1P18HfONHqrS7FTn+5Hsj8cNKxrpjdl0vGvUD+QZ4si
lTOQqBvCV30rCeOo3uUqAlt1EH21K73NQwoT4GknmLqiwrb1pZUiDaS7MaFTzHvQ
lEL3fm4HhEPzoecEnMelPq/a+4MaV4oduSvtbBKWcvRrXyI4z+M7N60tNLNe6zuc
89+4i3WEMC+Yra8xdLLzNaoo/HmgH2bTlTHdV4oe5HhKgYEqDatU6IbMHIKZpxk/
OWX7JHTbfL9ZBRsT66Hau+8pEXfXRFhrhuiK8SYSemWdKLN+5BUR04wvvLYcbPUi
H06lndIY3RzwdiwHmkkBlJB2IMLaOZfOPAJGMZckvafQRuA6qaoGc+PrDvl6RkJK
u6YAD0XclCajPnPQEL442UfsNcHkriIQS4Ro9SVVh013vJTkZUcXLGy1VtPjYDKJ
sNBakr0JOAsgAzsNkgY9jplK9QCzM6IqyEdozDTYAm5qBM++Q/jddhB7p16dJE0c
WQMWWC1P5lJ35PN+4ik9
=qyPr
-----END PGP SIGNATURE-----

--YZ5djTAD1cGYuMQK--

- Raw text -


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