This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: cygpath -w and .exe magic
On Fri, Aug 26, 2016 at 10:58 AM, Nellis, Kenneth wrote:
> 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
> $
That isn't really a failure, as "dir foo" in CMD.EXE should (and does)
return file not found if file "foo" (no extension) does not exist.
-- 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