delorie.com/archives/browse.cgi | search |
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:mime-version:in-reply-to:references:from:date | |
:message-id:subject:to:content-type; q=dns; s=default; b=Fwrgfx7 | |
NOpj/CbR7kvPvtyfSQ40zY90BnPa4lP/bmiLQJUaoMjEsum3OvR7IRqb+km/rxtg | |
gfttY7cWig3bJWOc4064ZTb6+EuXAaQYzs9fu6xmVgLqA4Y0V0Y9mIPcQP2OFOWu | |
K5Ylt3UwKVYSo6z27wDcyeHGxqaOhymPO1H4= | |
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:mime-version:in-reply-to:references:from:date | |
:message-id:subject:to:content-type; s=default; bh=AJ5GX90GVz0ah | |
0CxqbCD+ldFL9E=; b=a7aiCbDMr7V4nvw7A816RvYfMHj89SpBgEm9Sk4pFWMjh | |
osQEWsH405TW9zsiavO1OM3ZKY6Q6nh3eqOQu3fBxZikMpbYsq9BFHsyCxAdv5PQ | |
EfcNUq7Lnxzc7FhrWy2DZQjJDsA6ghaYjS8LrALqBgGs5abVRUNBuiFxTZJs+0= | |
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=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=32m |
X-HELO: | mail-wm0-f48.google.com |
X-Google-DKIM-Signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to; bh=xwZYx4Q6quRg3c8uOGlVXNGhOEQnseb7Sx2w07G+EQ4=; b=MI0r8/DUrxk3tIBzX3LBzYkSdZlEopH+0/UeQZ7e2KX3Bh+vNdg71+r+5CGj/YD+px Tyr+jZuhASJTkGfV8krbO/u+zswv1tu6LpwzOCy7neXb0sZF1q2Dn1LUAEC/Bje4wSAD yCrbynqXYSewEBBg3AmQ6kYcJ2KCKg49o2AgI7ttiywbXRaV9q6QsxSBB/ipsM42AePK tC2n4rMrnGfy6jFo99GeYoaLKh+tssiDnJmvRnXkziy15jD1/sRJ3AMwiZX6VaCRD1t6 GfiG4zoeVrQXfbFe+V2Z4giZty89sLTYAO5sQqYs9g6UHupH3rVxLXnQj4izmqv/MYoN AOsA== |
X-Gm-Message-State: | AEkooutnrV0ttA0GLhNk0IKbunXvgXc+qEhJ+EVdQnEZCfI/ZvuEQtazR1hLKwSZV63+7NYKwiWxSzoDtiUGvg== |
X-Received: | by 10.25.17.228 with SMTP id 97mr30572062lfr.154.1470761199457; Tue, 09 Aug 2016 09:46:39 -0700 (PDT) |
MIME-Version: | 1.0 |
In-Reply-To: | <40db60e7-cc96-d925-1d98-0a80be134d39@gmail.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> <20160808112321 DOT GF32150 AT calimero DOT vinschen DOT de> <e90174df-61b4-17c8-064b-30009e6ad559 AT gmail DOT com> <20160808143321 DOT GS25811 AT calimero DOT vinschen DOT de> <8dc84987-802d-30d3-3ebb-2ba25871b561 AT gmail DOT com> <CACoZoo3_kBe6zWktTzydhHFzeZMr+AZe1Z2WujagTcLme_ctZg AT mail DOT gmail DOT com> <40db60e7-cc96-d925-1d98-0a80be134d39 AT gmail DOT com> |
From: | Erik Soderquist <ErikSoderquist AT gmail DOT com> |
Date: | Tue, 9 Aug 2016 12:46:37 -0400 |
Message-ID: | <CACoZoo2pHguZbfF0PMii4jK=M+N92KuoRUK3UJt41c1k4KZCwA@mail.gmail.com> |
Subject: | Re: PATHEXT is fundamental to Windows and Should be recognised by CYGWIN |
To: | cygwin AT cygwin DOT com |
X-IsSubscribed: | yes |
On Tue, Aug 9, 2016 at 11:15 AM, cyg Simple wrote: > On 8/9/2016 10:13 AM, Erik Soderquist wrote: >> On Tue, Aug 9, 2016 at 8:58 AM, cyg Simple wrote: >>> I tried "chmod +x foo.txt; ./foo.txt" but that results in Cygwin >>> assuming the text file is a script and executing each line of the file. >>> If PATHEXT were used only to determine that the file should be passed to >>> ShellExecute instead it might be beneficial but since I can easily just >>> do "cmd /c foo.txt" then probably not so much. >> >> That is the behavior I would expect in any *nix environment, and >> therefore consider the correct behavior within cygwin. >> > > But any text file, regardless of the mode, regardless of #! first line > will be executed at least by bash; I have tested the other shells. This > isn't expected behavior as I see it. ... that should not work, but I've confirmed it does in some shells... user AT localhost /tmp $ echo echo meow >foo.txt user AT localhost /tmp $ ls -l foo.txt -rw-r--r-- 1 user Domain Users 10 Aug 9 12:37 foo.txt user AT localhost /tmp $ ./foo.txt meow user AT localhost /tmp $ chmod a-x foo.txt user AT localhost /tmp $ ./foo.txt meow user AT localhost /tmp $ ksh user AT localhost:/tmp $ ./foo.txt ksh: ./foo.txt: can't execute: Permission denied 126|user AT localhost:/tmp $ ^D user AT localhost /tmp $ dash \[\e]0;\w\a\]\n\[\e[32m\]\u@\h \[\e[33m\]\w\[\e[0m\]\n$ ./foo.txt meow \[\e]0;\w\a\]\n\[\e[32m\]\u@\h \[\e[33m\]\w\[\e[0m\]\n$ user AT localhost /tmp $ uname -a ; bash --version CYGWIN_NT-10.0 localhost 2.5.1(0.297/5/3) 2016-04-21 22:14 x86_64 Cygwin GNU bash, version 4.3.42(4)-release (x86_64-unknown-cygwin) Copyright (C) 2013 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software; you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. user AT localhost /tmp $ -- Erik -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |