public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* cygpath -w and .exe magic
@ 2016-08-26 13:59 Nellis, Kenneth
  2016-08-26 14:30 ` Lee Dilkie
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: Nellis, Kenneth @ 2016-08-26 13:59 UTC (permalink / raw)
  To: cygwin

Dear Cygwin Community,

$ ls -l
total 60
-rwxr-x--- 1 knellis Domain Users 60927 Aug 26 08:57 hello.exe
$ ./hello
Hello, world!
$ cygpath -w hello
hello
$

The purpose of cygpath -w, it seems to me, is to provide
to Windows a valid path given a Posix path.

Given executable file foo.exe, which Cygwin allows to be
referenced simply as foo, should not: cygpath -w foo
return: foo.exe
instead of: foo
?

Passing foo to a Windows application will certainly 
be a problem. I recognize this might be considered a
change of scope for the program, but I think the tool
should do the .exe magic rather than pass off this
responsibility to the user. Food for thought.

--Ken Nellis

--
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

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2016-08-26 17:55 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-26 13:59 cygpath -w and .exe magic Nellis, Kenneth
2016-08-26 14:30 ` Lee Dilkie
2016-08-26 14:30   ` Herbert Stocker
2016-08-26 14:58     ` Nellis, Kenneth
2016-08-26 15:07       ` cyg Simple
2016-08-26 15:34         ` Nellis, Kenneth
2016-08-26 17:55           ` Erik Soderquist
2016-08-26 19:50           ` cyg Simple
2016-08-26 14:45 ` cyg Simple
2016-08-26 15:29 ` Doug Henderson
2016-08-26 16:50 ` Herbert Stocker

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).