shell-init: error retrieving current directory
Thu Aug 22 11:11:00 GMT 2013
On Aug 22 06:21, LRN wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> On 22.08.2013 06:04, nu774 wrote:
> > Hi, I've experienced the same issue. From what I can see:
> > Current bash.exe of cygwin64 seems to be improperly built with
> > HAVE_GETCWD disabled, which result in using it's own getcwd
> > implementation in the bash source package.
> 1) It's not improperly disabled. Cygwin's getcwd does not behave the way
> bash wants it to (when called with 0 buffer and 0 buffer length, it
> fails, instead of allocating buffer). At least that is my understanding
> after observing the source code.
That's not the case. getcwd(NULL, 0) allocates a buffer via malloc,
as on Linux.
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Maintainer cygwin AT cygwin DOT com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 836 bytes
Desc: not available
More information about the Cygwin