This is the mail archive of the
cygwin
mailing list for the Cygwin project.
RE: cygpath -w and .exe magic
- From: "Nellis, Kenneth" <Kenneth dot Nellis at xerox dot com>
- To: "cygwin at cygwin dot com" <cygwin at cygwin dot com>
- Date: Fri, 26 Aug 2016 14:58:33 +0000
- Subject: RE: cygpath -w and .exe magic
- Authentication-results: sourceware.org; auth=none
- References: <d5d997ff-898e-85e2-40ac-56335b3001f6@gmail.com>
From: cyg Simple
> On 8/26/2016 10:35 AM, Nellis, Kenneth wrote:
> > From: Herbert Stocker
> >> On 26.08.2016 15:19, Lee Dilkie wrote:
> >>> and break everyone who has existing code to take care of this?
> >>
> >> If it is done, it should be done as an additional option, i'd say.
> >
> > Of course a new option, duh! ☺
> > But my feeble brain is failing to imagine a case where this
> > would break anything, unless the user solution would turn
> > a returned foo.exe into foo.exe.exe, which seems doubtful.
> >
>
> We still don't have a valid case of failure without the .exe. Until
> that happens this is a no-go change.
Here is a contrived example:
$ cmd /c DIR $(cygpath -w hello.exe)
Volume in drive C has no label.
Volume Serial Number is 6A15-FFB2
Directory of C:\cygwin\home\knellis\dev\c\hello
08/26/2016 10:47 60,927 hello.exe
1 File(s) 60,927 bytes
0 Dir(s) 218,673,360,896 bytes free
$ cmd /c DIR $(cygpath -w hello)
Volume in drive C has no label.
Volume Serial Number is 6A15-FFB2
Directory of C:\cygwin\home\knellis\dev\c\hello
File Not Found
$
As I originally said, "Food for thought."
I thought it might be worth a discussion.
Appreciate the comments.
--Ken Nellis