[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
cygwin 1.5.3: "/bin/mv dir dir" results in recursive-loop copy
From: |
Tony Clayton |
Subject: |
cygwin 1.5.3: "/bin/mv dir dir" results in recursive-loop copy |
Date: |
Wed, 12 Nov 2003 11:12:55 -0500 |
User-agent: |
Mutt/1.4.1i |
Please note: I'm cross-posting to both cygwin and fileutils lists. Sorry
for any inconvenience.
I had a directory containing some source files. I wanted to create a
subdirectory "src", and put the files in there. Being lazy, I just did:
mkdir src
mv * src
I do this sort of thing often on various linux platforms without a problem
- the files will get moved, and an error will be displayed about the source
file:
-apc·sme60build[~/tmp/mvtest]$ touch blah blah2
-apc·sme60build[~/tmp/mvtest]$ ls
blah blah2
-apc·sme60build[~/tmp/mvtest]$ mkdir src
-apc·sme60build[~/tmp/mvtest]$ mv * src
mv: cannot move `src' to a subdirectory of itself, `src/src'
-apc·sme60build[~/tmp/mvtest]$ echo $?
1
-apc·sme60build[~/tmp/mvtest]$ find
.
./src
./src/blah
./src/blah2
in cygwin 1.5.3, I got the following error after a moment:
mv: cannot create directory `src/src/src/src/src/src/src [...] /src':
Invalid argument
I think it is the MAX_PATH=256 limitation that finally brings this to a
halt. Each of the subdirectories contains all the source files and a src
directory.
Running "mv --version shows:
mv (fileutils) 4.1
...
I've attached a cygcheck.out file for more details.
I'm not on the cygwin list, so I'm probably not going to follow this
thread. I just thought I'd report this in case it is still an outstanding
but that needs fixing.
cheers,
Tony
cygcheck.out
Description: Text document
- cygwin 1.5.3: "/bin/mv dir dir" results in recursive-loop copy,
Tony Clayton <=