Bug. "File or path name too long"

Derek Haskin derek.haskin@commerceone.com
Fri Mar 10 09:39:00 GMT 2000


Earnie thanks for the quick response. But I think I should have provided you
with more information.

The path/file name I am passing is 117 characters in length which is under
the 259 character limit.

>From a dos command prompt I ran two commands. The first using dos "dir"
command which works fine.
Then I ran the ls command using the same parameter and I get the "File or
path name too long" problem.
So to me this indicates that it is a problem specific to the bash shell
commands.

I get the same problem when I use other bash shell commands such as "cp".


THIS "dir" COMMAND WORKS
------------------------

>dir
..\..\..\..\..\..\..\classes\com\commerceone\ccs\doclet\registration\Registr
ation_sox
\AlternateTradingPartnerID.class
 Volume in drive D has no label.
 Volume Serial Number is B8F5-71F4

 Directory of
D:\builds\home\projects\marketsite\CommercePlatform_30\2000_03_09_14_41\ccs\
classes\com\commerceone\ccs\doclet\registration\Registration_sox

03/09/00  05:32p                 1,214 AlternateTradingPartnerID.class
               1 File(s)          1,214 bytes
                         48,662,761,472 bytes free



THIS "ls" COMMAND DOES NOT WORK
-------------------------------

>ls
..\..\..\..\..\..\..\classes\com\commerceone\ccs\doclet\registration\Registr
ation_sox\AlternateTradingPartnerID.class
ls:
..\..\..\..\..\..\..\classes\com\commerceone\ccs\doclet\registration\Registr
ation_sox\AlternateTradingPartnerID.class: File or path name too long


Please advise.

thanks
derek.

-----Original Message-----
From: Earnie Boyd [ mailto:earnie_boyd@yahoo.com ]
Sent: Friday, March 10, 2000 6:34 AM
To: Derek Haskin; 'cygwin@sourceware.cygnus.com'
Subject: Re: Bug. "File or path name too long"


The path size limit is set by MAX_PATH and is a limitation of the M$ Windows
system.  It's set to 260 which is the NT limit including the terminating
NULL. 
I believe the limit to be 259 for Win9x (at least Win95).

--- Derek Haskin <derek.haskin@commerceone.com> wrote:
> I have installed Cygwin 1.0 on a new Machine.
> 
> I am experiencing a problem where it seems that I am reaching the limit on
> how long a path/filename can be.
> I first experienced this during "make" which tries to create a class file
> but can;t because the pathname/filename is too long.
> 
-8<-

=====
---
   Earnie Boyd: < mailto:earnie_boyd@yahoo.com >
            __Cygwin: POSIX on Windows__
Cygwin Newbies: < http://www.freeyellow.com/members5/gw32/index.html >
           __Minimalist GNU for Windows__
  Mingw32 List: < http://www.egroups.com/group/mingw32/ >
    Mingw Home: < http://www.mingw.org/ >
__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com



More information about the Cygwin mailing list