X-Spam-Check-By: sourceware.org Message-ID: <44B3BA9E.70604@cygwin.com> Date: Tue, 11 Jul 2006 10:50:06 -0400 From: "Larry Hall (Cygwin)" Reply-To: cygwin AT cygwin DOT com User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8) Gecko/20060112 Fedora/1.5-1.fc4.remi Thunderbird/1.5 Mnenhy/0.7.4.0 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: Cgywin filename with 255 character References: <8389af8b0603241937m62e9701y596bed40382bd6f0 AT mail DOT gmail DOT com> <4424BE59 DOT 9184F1E1 AT dessent DOT net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 Xiaomin Wu wrote: > Hello, > > I have problem to touch a file with 255 charaters long filename in Cygwin > client (MKS client works fine). After remove 2 of them, it seems work fine. > Could you explain why? Thanks a lot! > > sh-3.1$ pwd > /cygdrive/c > > sh-3.1$ touch c:/file123456789-123456789-123456789-123456789-123456789-12345678 > 9-123456789-123456789-123456789-123456789-123456789-123456789-123456789-1234567 > 89-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456 > 789-123456789-123456789-1234567.txt <== 255 charaters not include c:/ > touch: cannot touch `c:/file123456789-123456789-123456789-123456789-123456789-12 > 3456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-12 > 3456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-12 > 3456789-123456789-123456789-1234567.txt': File name too long > > sh-3.1$ touch c:/file123456789-123456789-123456789-123456789-123456789-12345678 > 9-123456789-123456789-123456789-123456789-123456789-123456789-123456789-1234567 > 89-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456 > 789-123456789-123456789-123456.txt <== 254 charaters not include c:/ > touch: cannot touch `c:/file123456789-123456789-123456789-123456789-123456789-12 > 3456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-12 > 3456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-12 > 3456789-123456789-123456789-123456.txt': File name too long > > > sh-3.1$ touch c:/file123456789-123456789-123456789-123456789-123456789-12345678 > 9-123456789-123456789-123456789-123456789-123456789-123456789-123456789-1234567 > 89-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456 > 789-123456789-123456789-12345.txt <==253 charaters not include c:/ > Windows places a limit on the number of ASCII characters in a file/path name. It's approximately 260 characters. Cygwin path conversion may cut that down a bit. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/