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:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=DfxTbBl6v3kllw6/ M/ftilMWtfqjs245K1Ef8v24itwwFER5RdcncpTvxKiTOVh0GRj9GGLY+54/3hX9 E57cfAjdTMjTJPSMRdeAdBJC0VeI1eWNxoD1WIcQwBHqSrK1sZIKeGMzKgjuEuuI Cb7W1P9lq/DinCiaSkK1CNtO1r4= 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:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=2VagjjSiVSvAyNl5o7s8ia tpCmw=; b=NDsQZEaZAh7Jkm5RkMJ5AFncuNxxV49hiCfZSecv4/UQi0SYZk9tDL vSY3Fce3rDt8ToYmklVIsx9bVXZB0sO7/kV4HNod9cv2Yg4NSxekeXZusF+VMbCD T58gJYyIRqtfNqB2mO9f/ysi26Kc++UQnkdL6WD7yw2IHOgOegbQo= 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=-2.3 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=Herbert, Stocker, stocker, H*i:sk:57A6ED1 X-HELO: mail-it0-f41.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=zXOmEQ7K0oQW4xjrcaAP4ka+/TJmB/zhyLls1rINWm0=; b=XyRi51SbvpkJarsvGp96iuCAJ4DxMOss1yLClB636BaDisaLm98Zn2/SgWJF88xU/5 staV1r3NnWg7rwdxXKMEbciy0odzAJKkZCDII6Q16mW09FWSqRLaknILUSNLEX7I6FV+ Y3yEO6WiRwdu2o7oI1UxJnin9A8AMWEXWKbWY/rzwkUnOMCSujFyGCHKBarEmqwc0QiK UpX3XuTcm3RS8wo/jLHMdmZFW/ohfetAeYFYyAeKl6YeYjujKQeZkM53yjGQs9P/fbhX tpVBEDOtL4LuUZ0Z17EVrfMnVRdNRsOX2ZjEs/tHqAjIgA3gDQTweWjOtasLjDNdq63M 9tJQ== X-Gm-Message-State: AEkooutK/S8ACA4CaCFzpkDZeg/dgYybnGblycFMIFGtGVQ95WpMPRj1KWhBJjQk2Cs4EA== X-Received: by 10.36.219.65 with SMTP id c62mr13557911itg.44.1470591639353; Sun, 07 Aug 2016 10:40:39 -0700 (PDT) Subject: Re: PATHEXT is fundamental to Windows and Should be recognised by CYGWIN To: cygwin AT cygwin DOT com References: <001001d1edf1$a4e1ae90$eea50bb0$@rogers.com> <1C0AE95E-0118-4353-AA77-4D41F1AE9AE1 AT solidrocksystems DOT com> <001a01d1eea9$f7949a90$e6bdcfb0$@rogers.com> <76ec05e9-140a-19cb-942b-698582c3d024 AT gmail DOT com> <001f01d1ef2c$f04af9e0$d0e0eda0$@rogers.com> <20160805152951 DOT GO25811 AT calimero DOT vinschen DOT de> <57A6ED1C DOT 1060402 AT gmx DOT de> From: cyg Simple Message-ID: <5adee091-78a6-3a3d-5277-efa9e666f84e@gmail.com> Date: Sun, 7 Aug 2016 13:40:54 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <57A6ED1C.1060402@gmx.de> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes On 8/7/2016 4:11 AM, Herbert Stocker wrote: > On 05.08.2016 17:29, Corinna Vinschen wrote: > If you see the >> code required to handle .exe and .lnk extensions you don't *want* >> PATHEXT support anymore. >> > > Moreso, this code has recently broken my C++ code in Cygwin. > It tried to see if a directory /dir/subdir/something existed, > and Cygwin said yes because it found a /dir/subdir/something.exe . > So my program failed. > In my opinion this is an issue with stat/lstat coding. In the alpha days of Cygwin binutils didn't add the .exe to executable files. The problem that caused was that CMD couldn't execute a perfectly valid executable even though Cygwin's bash could. The fix is what we have today and it does cause problems such as you describe. The fact that this scenario prevails is an indication that the code needs to be revisited. Maybe even a different method to execute files with extensions given without the extensions at the command line. -- cyg Simple -- 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