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=bTGYfU/yZ5BwZNmmRDTXHD04Z7j3uusqSCcy6iFjDzZ
	elusbIq+295tahiXEbG3KZtSAiCKWpchaVovE+iSYwmG9hjAknHDGbCm+hNCkf2l
	ndwyR/bXZkFoviEE0UXymuUAsHbTqyiEoVVMR64cqPDFdsVV3KLD3g5CXhZQ42Lg
	=
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=PgRkFrVNMrpAf5EJjQ/P/5mxaeQ=; b=TNBpMPf8IFcRc5rJR
	eJNQFw7ASGPczful6S6DlgT95mqgcQGePkgX7D79qAYK19xbLL/AKrxi2C/YkMwc
	sAidYm/vNUWXwXs03GMoo2wPvQ4oNUvogdGIs8t1AjJoAHGEYh6CG0f6wDzT32fS
	PK13PBF4e4Sg69AK/QXZcKGmPs=
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=-1.5 required=5.0 tests=AWL,BAYES_00,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,KHOP_THREADED,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_YE,SPF_PASS autolearn=ham version=3.3.2
X-Received: by 10.68.175.164 with SMTP id cb4mr504018pbc.191.1377138457831;        Wed, 21 Aug 2013 19:27:37 -0700 (PDT)
Message-ID: <52157710.7060509@gmail.com>
Date: Thu, 22 Aug 2013 11:27:28 +0900
From: nu774 <honeycomb77@gmail.com>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130801 Thunderbird/17.0.8
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: shell-init: error retrieving current directory
References: <521571A7.6010503@gmail.com> <521575A1.6020304@gmail.com>
In-Reply-To: <521575A1.6020304@gmail.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit

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


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

