I downloaded the latest 'Cygwin' package from
Red hat's web site and discovered a very
serious problem with the 'cp' command.
I am using Windows 2000. When I try
to copy a file from directory A to directory B
under the command prompt window (Not under
bash shell) with the 'cp' command:
C:\A\subA>cd \B\subB
C:\B\subB>cp \A\subA\Foo.java .
cp: preserving permissions for ./\A\subA\Foo.java: No such file
or directory
When I check the file Foo.java in \A\subA, its size has been
changed to '0', the file is essentially wiped out.
Fortunately I have made a backup copy. I put back the backup
copy and set its attribute to 'read only' and do the operation
again. This time I get a different error message:
cp: cannot create regular file `./\A\subA\Foo.java': Permission
denied
If I change the destination from '.' to a file name Foo.java, or if
I run the command under 'bash', then it seems to work
I can accept the command failing if I use the wrong syntax. But
it is not disastrous to have the source file wiped out.
_______________________________________
Alex Chen
Lantern Communications, Inc.
211 River Oaks
San Jose, CA 95134
Tel: (408)521-6730
E-mail: [EMAIL PROTECTED]
http://www.lanterncom.com
_______________________________________________
Bug-fileutils mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-fileutils