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: Unwanted .exe appended to symlinks


On Jul  9 16:50, Eric Blake wrote:
> Corinna Vinschen <corinna-cygwin <at> cygwin.com> writes:
> 
> > 
> > On Jul  9 07:30, Eric Blake wrote:
> > > Hmm, while I'm at it, "dirname //" should return //, not /.
> > 
> > No.  // is a perfectly valid root dir in a system which differs between
> > / and //.  Let dirname(1) just use what it gets from dirname(3).
> > 
> > Corinna
> > 
> 
> Actually, dirname(1) doesn't call dirname(3) - there are enough quirks in
> various platforms' dirname(3), plus POSIX requires the algorithm of dirname(1)
> to work even on invalid pathnames.

That's how Cygwin's dirname is designed.  It also allows dirname on
DOS paths.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          mailto:cygwin@cygwin.com
Red Hat, Inc.

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