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:message-id:date:from:mime-version:to:subject :content-type:content-transfer-encoding; q=dns; s=default; b=HcY eCdV08AQDLqf3KauFemPV4VAFo797TiLjqknKEcKdZcDsSpEdJ/oepex9kzfH2Cz Cv8/nnB0RdRSAj1tpWgeTb8bINN5+x4GjyAUVKMYh0XYCm7w6pmp7WI8yOcZaLBL v7ytcpejOLt35FG+o0bU0qoMbR4WK2v+Cvcka66c= 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:message-id:date:from:mime-version:to:subject :content-type:content-transfer-encoding; s=default; bh=uK/Nrf2Bz JxExX3+J5E3D1f8wGs=; b=ZpKTKn70clI/5NjLuraeqmZwiDMwQJorHvXau/GkQ 0b4rK23TQpTrejyTK9NiGDojHik8ys4ePuY7y875Wv0DfR4SeXSqu9o0gc/VzSBo L/OxUmWiGrtQ8uz/U6M44pPnD+8u+5SFbRulVV2eGA74M5NCOOW5x01f/ujZRpwU KI= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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=-0.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 X-HELO: mout.kundenserver.de Message-ID: <54D7EB8E.8070308@towo.net> Date: Mon, 09 Feb 2015 00:04:46 +0100 From: Thomas Wolff User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: execlp/execvp needs case-correct PATH Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-UI-Out-Filterresults: notjunk:1; X-IsSubscribed: yes 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 „The execlp(), execvp(), and execvpe() functions duplicate the actions of the shell in searching for an executable file …“ Thomas -- 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