bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: bug report : about rm command


From: xiaolong . shen
Subject: RE: bug report : about rm command
Date: Wed, 21 May 2008 11:14:55 +0800

Thanks for you rapid response.

My rm command use background:
I use it in a cpy.bat file , which is invoked by VC++ 6.0 post build 
command.(per build , dll and pde file will be copy to a special directory, but 
the original file should be backup for possible restore reason)

ENV : XP sp2 professional . window english version.

Z: is a network driver , I have full access privilege.
The cpy.bat script content::
if exist z:\%1.dll rm z:\%1.dll z:\_%1.dll
copy /y %1.dll z:\
copy /y %1.pdb z:\
copy /y %1.sbr z:\


the line "if exist z:\%1.dll rm z:\%1.dll z:\_%1.dll " always fails, even I 
test it in CMD method. Example : 
Start -> run -> cmd
D:
rm c:\aa.dll c:\_aa.dll

the last line will fail.(file c:\aa.dll exists in truth)


Best Regards 
Tonny Shen (申晓龙)
----------------------------  
Tel: 86-21-38960740 
FAX: 86-21-58992160

-----Original Message-----
From: Eric Blake [mailto:address@hidden 
Sent: Wednesday, May 21, 2008 10:54 AM
To: Shen, Xiaolong
Cc: address@hidden
Subject: Re: bug report : about rm command

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to address@hidden on 5/20/2008 8:47 PM:
| bug report:
| assume Z is a network driver and I has full access privilege.
| Execute below command:
| rm z:\aa.dll z:\_aa.dll

Which version of rm are you using, and under which windows port?  Also,
are you running this under cmd.exe or under a Unix-y shell such as bash?
By default, \ behaves differently in these shells; the problem may stem
from using a shell that interprets \ as a quoting character rather than a
directory separator.

At any rate, I would recommend using the cygwin port of coreutils, since I
know it is more likely to be up-to-date.  There you would type this as "rm
/cygdrive/z/aa.dll /cygdrive/z/_aa.dll", in either cmd.exe or bash.

Further questions on this matter are probably better directed to a mailing
list that deals specifically with porting GNU code to Windows, such as
cygwin or mingw; this list does not focus much on the quirks of running
GNU software on Windows.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkgzjtIACgkQ84KuGfSFAYCk4ACgnDMcl82I76PpspfojrNrWE0Z
NXMAn3jCQUWQcpqBW8FIQ7/E1Cw+/xNA
=oiOV
-----END PGP SIGNATURE-----





reply via email to

[Prev in Thread] Current Thread [Next in Thread]