|
From: | Gregory M. Turner |
Subject: | Re: cygwin: glob successfully for executables without ".exe" suffix |
Date: | Mon, 10 Sep 2012 01:49:38 -0700 |
User-agent: | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/20120824 Thunderbird/15.0 |
On 9/9/2012 6:52 PM, John E. Malmberg wrote:
On 9/9/2012 7:52 PM, Gregory M. Turner wrote:
>>
I'd be happy to iterate if folks have some good ideas as to how to improve the implementation.Don't forget that the file test operators also need to be able to find the same binary files. Otherwise you can run into a situation where you can see the file with glob, but not see the file when you try to test to see if it exist or to stat it.
It already tested for that -- but, now that you mention it, if foo was a symlink and foo.exe was a regular file, it was returning a match -- in such a case, the cygwin .exe-hack couldn't possibly be responsible for foo's presence. I've enclosed an updated patch fixing that.
> [snip]
I have not yet found anything that actually cares so far though.
Of course, I found a real-world need, or I wouldn't have bothered (some Gentoo scripts that were going to be difficult to cygwin-ify otherwise).
-gmt
bash-4.2_p37-cygwin-exe-hack-globfix-rev1.patch
Description: Text document
[Prev in Thread] | Current Thread | [Next in Thread] |