delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/02/10/04:37:43

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=qASied0YHtrr9sKPb+OgRmNtYhFZmS/W+9RJvaK3PNEytmnMEDop6
buU0wp1WDfI+AplyvlX8MUxUCIZBfANo7yhs5QXIkLwjC5aBz09d4lSWU076q23B
SkLeDqE92I9JKMwcDqDD+3+XRbpPEijGUk3pUl3LeyCXZuwifQ8Ams=
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=RtxRSSFBK6OyVrnsUts/93Gtvp4=; b=FaWLmA7810Av523+v/m7okEgqDI/
GDk2Kb+NXT18znXxjQ+VgFYAn8Xwl6LiLiG2+YIsqqpljIJF0LVjy86ezdJnhDp5
LPDAtijtL8j8BSPJzYa8A2SXel4nlC4GERyG0hIgAthRyNKGykdR0LfsvLARw2Qy
+zivTi1v8M9HGUU=
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: Tue, 10 Feb 2015 10:27:56 +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: <20150210092756.GC15989@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> <20150209101747 DOT GA12131 AT calimero DOT vinschen DOT de> <54D91D54 DOT 5000705 AT towo DOT net>
MIME-Version: 1.0
In-Reply-To: <54D91D54.5000705@towo.net>
User-Agent: Mutt/1.5.23 (2014-03-12)

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

On Feb  9 21:49, Thomas Wolff wrote:
> Am 09.02.2015 um 11:17 schrieb Corinna Vinschen:
> >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 th=
is
> >>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 =
actions
> >>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/System=
32/Wbem /mnt/c/WINDOWS/System32/WindowsPowerShell/v1.0 /usr/lib/lapack
> >   $ notepad
> >   notepad: Command not found.
> >   $ /mnt/c/Windows/notepad
> >   <works>
> >   $
> Sorry, I forgot one detail: I added /cygdrive/c/Windows/System32 to my pa=
th
> so the shell will find it, but yet execlp does not find it.

Which makes sense, given that notepad is not in C:\Windows\System32,
but in C:\Windows.


Corinna

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

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

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

iQIcBAEBAgAGBQJU2c8cAAoJEPU2Bp2uRE+gtn4P/16KQ7esoSHJDty74Tk6Fh8a
nKA45SnoYOWMmuo+h/HcOyY1H4lzHNJPwbkDyGteXYZO/9vuh968LWUsBBQvZRI6
qGjM6bNYx1j/SR+gI8JybMl3sDfY4yu3L9de7OidE4rDIcTdT5xZme0xYCfY+li1
6BBAtrdgqYl5tmwYNxrx5N3x607GHkG1dqToleEUI3olTo45cxxWOckUMsGBQ8xy
0yitZnkVL32OTnRnkiBRXoZ6wlKg/Lv7wW2zLRa6xkHpOFGhYIY/98Y40IBbnH1O
QPNhvhb8r7vj7Ohn8DqCCC87qmNt7hMa/4crRn73eLigjS6lQhb1NRXY/IJMLrnG
nsF1ij7geZ1tG1aEtTZ93NIgoSIb9KIkRtKQ3lGl9idUxwD8pBKW1yixoi5atTYg
Zswh9jWk6WM24ewwBl6Fhn7qUIWHGJykkKrEczdO53i6cpS/tobyTX9etgl+VGuB
kZKszjnwsdEGQz3uvYhbII8jy5F3ywTv1aWQ5B+0RdVIJN+nQXoIl4JUGZFwmSEf
oXT0IdG9flprMRWCFThND3bOWVbc+Cr8gfvmfjcAPq5Qpug4e15PKpvRzGLKL9vn
RAjdrZcaox9L9Kg4oUzpXtc9uDrxdNUJ7aQIZLJSqQQR5ZQLJUJOkl6OhkXNQRzr
emyfNx2mcpwswuGQkxaL
=LtH4
-----END PGP SIGNATURE-----

--TiqCXmo5T1hvSQQg--

- Raw text -


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