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:message-id:date:from:mime-version:to:subject
	:references:in-reply-to:content-type:content-transfer-encoding;
	 q=dns; s=default; b=rYPEnKKZwuI2g9LE7uVkOX/747qyi4UwIA4kGx5mhnQ
	PnOhUc1uUW3Sybvpc1sBS2vRpgqkXNzKo2HkF6Ytl2ztPSVTHvBtnksXvMj3uFa9
	UUuv+AweayNpM4I5nVVoJykeoKnc7+MV2Pkps+RPC2SYWDz9qg4rdtdpshYokQtI
	=
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:message-id:date:from:mime-version:to:subject
	:references:in-reply-to:content-type:content-transfer-encoding;
	 s=default; bh=1FQarxGBbKz2aDWXHygN1L3JbrM=; b=m6p/NZcrx1645CgSL
	koTWWD/xJmjKzUZpSGizQWHgyKInlzgO49mhH8ux1YEOAdm4fjGSIsaMxgg/vT4S
	2XEbxBlzT9JM1RZB640OrnoBrvpVyF5M/D12XckueqN1JYW+ZhexpX45UntyfNw0
	D/vda4ESYeGP2hHD3mi8gFXOI0=
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=-5.8 required=5.0 tests=AWL,BAYES_00,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,KHOP_PGP_INLINE,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,SPF_PASS autolearn=ham version=3.3.2
X-Received: by 10.112.51.101 with SMTP id j5mr9448756lbo.17.1377138083791;        Wed, 21 Aug 2013 19:21:23 -0700 (PDT)
Message-ID: <521575A1.6020304@gmail.com>
Date: Thu, 22 Aug 2013 06:21:21 +0400
From: LRN <lrn1986@gmail.com>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:26.0) Gecko/20100101 Thunderbird/26.0a1
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: shell-init: error retrieving current directory
References: <521571A7.6010503@gmail.com>
In-Reply-To: <521571A7.6010503@gmail.com>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit

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

2) Also, this happens if you cross-compile bash (because this can't be
autodetected when cross-compiling, and configure assumes the worst).

- -- 
O< ascii ribbon - stop html email! - www.asciiribbon.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (MingW32)

iQEcBAEBAgAGBQJSFXWgAAoJEOs4Jb6SI2CwQc0IAISz5iIJ0h7bDhkdFU5WKqb8
/sQUvqUIB+9Z5IQ2+S3mWXbAMAqOKbc65zzWQPsPyEXDzpaTApRa9ICSbBlsZWPv
xvsktXawU67mfN/HZ7qunWsmD5h5EwXJvPUIUXBKAAbsgsAVI/UrADM0nKnJcQio
+dX1huhC1aUZY8LAThJ6v64Qso7TGO+4WLNjQw/0/wtzCq/VkCErIx65FFMXU6sT
ioZvfNdwIa92yuSU6Vbx+nATbcwq/pxbdZNXNiz0ryiBkUlzLKNFsyVxEXLVShdL
hXRtz8GdRoESJW1iWZjfUTheTFrZ5KwN4zy5YgYDvQHY8URAOGqqLHu+7vEhizI=
=7tr+
-----END PGP SIGNATURE-----

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

