Re: shell-init: error retrieving current directory

2013-08-23 Thread Corinna Vinschen
On Aug 23 09:52, nu774 wrote: > Thanks, 4.1.11-2 is now working fine. > > (2013/08/22 23:12), Corinna Vinschen wrote: > >Since our bash maintainer Eric is currently extremly busy, I took a stab > >at it and created a new bash-4.1.11-2 64-bit package. It picked up the > >Cygwin getcwd and didn't h

Re: shell-init: error retrieving current directory

2013-08-22 Thread nu774
Thanks, 4.1.11-2 is now working fine. (2013/08/22 23:12), Corinna Vinschen wrote: Since our bash maintainer Eric is currently extremly busy, I took a stab at it and created a new bash-4.1.11-2 64-bit package. It picked up the Cygwin getcwd and didn't have the reported problem in my quick test.

Re: shell-init: error retrieving current directory

2013-08-22 Thread Corinna Vinschen
On Aug 22 21:48, nu774 wrote: > Hi, > > It seems that getcwd() of bash continues the following approach > until it reaches /. > > 1) readdir() on the parent directory. > 2) for each dirent returned by readdir(), find the entry that > matches the current dirctory (by comparing inode or something).

Re: shell-init: error retrieving current directory

2013-08-22 Thread nu774
Hi, It seems that getcwd() of bash continues the following approach until it reaches /. 1) readdir() on the parent directory. 2) for each dirent returned by readdir(), find the entry that matches the current dirctory (by comparing inode or something). 3) set parent dir as current, and contin

Re: shell-init: error retrieving current directory

2013-08-22 Thread Corinna Vinschen
On Aug 22 11:27, nu774 wrote: > Hi, > > Thanks, I see. > And I noticed bash.exe of cygwin32 is also using it's own getcwd > WITHOUT issue. Still, why does it fail on 64 bit but not on 32 bit? Cygwin's path handling code is identical for both platforms. Corinna -- Corinna Vinschen

Re: shell-init: error retrieving current directory

2013-08-22 Thread Corinna Vinschen
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

Re: shell-init: error retrieving current directory

2013-08-21 Thread nu774
Hi, Thanks, I see. And I noticed bash.exe of cygwin32 is also using it's own getcwd WITHOUT issue. (2013/08/22 11:21), LRN wrote: 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 allo

Re: shell-init: error retrieving current directory

2013-08-21 Thread nu774
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. This can be indirectly observed by inspecting bash.exe with dependency wal

Re: shell-init: error retrieving current directory

2013-08-16 Thread Andrey Repin
t; create a desktop shortcut. > - Edit /etc/fstab to change the cygdrive prefix to /. > - Double click 'Cygwin64 Terminal' desktop shortcut. > Result: a bunch of errors before the bash prompt. > shell-init: error retrieving current directory: getcwd: cannot access > parent dir

Re: shell-init: error retrieving current directory

2013-08-16 Thread Corinna Vinschen
nd let it > create a desktop shortcut. > - Edit /etc/fstab to change the cygdrive prefix to /. > - Double click 'Cygwin64 Terminal' desktop shortcut. > > Result: a bunch of errors before the bash prompt. > > shell-init: error retrieving current directory: getcwd: ca

shell-init: error retrieving current directory

2013-08-16 Thread Andy Koppe
e cygdrive prefix to /. - Double click 'Cygwin64 Terminal' desktop shortcut. Result: a bunch of errors before the bash prompt. shell-init: error retrieving current directory: getcwd: cannot access parent directories: Bad file descriptor job-working-directory: error retrieving current direc