X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:date:from:reply-to:message-id:to:subject
	:in-reply-to:references:mime-version:content-type
	:content-transfer-encoding; q=dns; s=default; b=Zo+xKjsKNhRFGTUE
	8ERMw3WAikAqic3q658yAIJJ0Vb5KmzLI77mMZqRfl2MKYNs6qlkyNRGcMH1qZCC
	LUDSwhWUlOqnVju1+WzIQrJS97j6hwfJTkKCres2s3/jadhEehqFjlN98QjfyYfF
	OEcyqrEGfT105yjKkRqyH+Wyj9M=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:date:from:reply-to:message-id:to:subject
	:in-reply-to:references:mime-version:content-type
	:content-transfer-encoding; s=default; bh=4Y8EKESu0zh0gGArjizs9v
	AvKRk=; b=OnaFbp3KGYJyIvcDA41sQF8Jr67EqU1C5SfjeKk+9i2kXhugOR63LS
	GEBl7sF8U23hzXTm1llEGHrfBZ523vGP9H8l7ETGhSzLV7vk0sIuF/o0kC6pX86n
	VXVt34dCVKqzpQmyc6fJo5y+ONR2i0ze+PGEmiqwyek/zQnBy/dH0=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
X-Spam-SWARE-Status: No, score=-0.0 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,KAM_THEBAT,KHOP_THREADED,SPF_SOFTFAIL autolearn=no version=3.3.2
Date: Fri, 16 Aug 2013 21:49:10 +0400
From: Andrey Repin <anrdaemon@freemail.ru>
Reply-To: Andrey Repin <cygwin@cygwin.com>
Message-ID: <1673775914.20130816214910@mtu-net.ru>
To: Andy Koppe <andy.koppe@gmail.com>, cygwin@cygwin.com
Subject: Re: shell-init: error retrieving current directory
In-Reply-To: <CAHWeT-b80VyH382nXA2RrNmgK1jGOrFpw_t_zpJWEv7znR7pmA@mail.gmail.com>
References: <CAHWeT-b80VyH382nXA2RrNmgK1jGOrFpw_t_zpJWEv7znR7pmA@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes

Greetings, Andy Koppe!

> This might be the same issue as a couple of previous unresolved
> reports with the same error message, but I'm not sure, so here's a new
> thread.

> Steps to reproduce:
> - On Windows 7, install 64-bit Cygwin into C:\cygwin, and 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: cannot access
> parent directories: Bad file descriptor
> job-working-directory: error retrieving current directory: getcwd:
> cannot access parent directories: No such file or directory
> job-working-directory: error retrieving current directory: getcwd:
> cannot access parent directories: No such file or directory
> job-working-directory: error retrieving current directory: getcwd:
> cannot access parent directories: No such file or directory
> chdir: error retrieving current directory: getcwd: cannot access
> parent directories: No error

> The errors remain if the shortcut target is changed from invoking
> mintty to invoking bash directly: 'C:\cygwin\bin\bash.exe -l'.

> The errors go away if 'C:\cygwin\bin' is put into the shortcut's
> otherwise empty 'Start In' field. (But they stay if 'C:\' is put there
> instead.)

> They also go away if the cygdrive prefix is changed to anything but
> the root directory.

> I couldn't reproduce the issue with a 32-bit install.

Been there, done that.

http://sourceware.org/ml/cygwin/2013-06/msg00733.html

Unfortunately, the pending new VM setup was cancelled, and I've had no time to
get around to test this issue again.


--
WBR,
Andrey Repin (anrdaemon@freemail.ru) 16.08.2013, <21:44>

Sorry for my terrible english...


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

