This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: [ANNOUNCEMENT] Updated: cygwin-1.5.19-1


Sam Steingold wrote:

> 
> not only cygwin "drops extension" from argv[0] (as your bug report
> says), 


  That's not a bug, it's a vital feature.  Consider all those Unix-y programs
that perform different functions according to the filename you invoke them
with.  Most of them just use "if (!strcmp (argv[0], "name"))" constructs that
would fail if the .exe extension was left on.  Clipping it off is probably the
best portability-vs-bugs tradeoff for cygwin.

    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]