X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=0.8 required=5.0 tests=BAYES_50,T_RP_MATCHES_RCVD,UNPARSEABLE_RELAY X-Spam-Check-By: sourceware.org Date: Thu, 7 Oct 2010 11:50:30 +0200 From: Ladislav Michl To: cygwin Subject: (cd $P && pwd) fails for path >255 chars Message-ID: <20101007095030.GA3479@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Hi, while building Cygwin hosted toolchain build was mysteriously failing with 'No such file or directory'. Here's a test case: P=/tmp for i in 1 2 3 4 5 6 7 8 do P=$P/this_is_somewhat_very_long_path done mkdir -p $P (cd $P && pwd) pwd outputs just '.', but once editing loop to end at 7th iteration (thus making path shorter than 255 characters) it prints path correctly. The problem is that 'cd' cannot change directory to path longer that 255 characters and fails silently with exit status 0. Is it known/expected behaviour? Cygwin DLL version 1.7.7 on Windows 2003 Server Ver 5.2 Build 3790 Service Pack 2, running under WOW64 on AMD64. Thank you, ladis -- 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