delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/08/16/13:50:29

X-Recipient: archive-cygwin AT delorie DOT 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 AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT 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 AT freemail DOT ru>
Reply-To: Andrey Repin <cygwin AT cygwin DOT com>
Message-ID: <1673775914.20130816214910@mtu-net.ru>
To: Andy Koppe <andy DOT koppe AT gmail DOT com>, cygwin AT cygwin DOT com
Subject: Re: shell-init: error retrieving current directory
In-Reply-To: <CAHWeT-b80VyH382nXA2RrNmgK1jGOrFpw_t_zpJWEv7znR7pmA@mail.gmail.com>
References: <CAHWeT-b80VyH382nXA2RrNmgK1jGOrFpw_t_zpJWEv7znR7pmA AT mail DOT gmail DOT com>
MIME-Version: 1.0
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 AT freemail DOT 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019