This is the mail archive of the
cygwin
mailing list for the Cygwin project.
RE: rm hangs on illegal filename nul
- From: "Dave Korn" <dk at artimi dot com>
- To: <cygwin at cygwin dot com>
- Date: Thu, 27 May 2004 15:42:36 +0100
- Subject: RE: rm hangs on illegal filename nul
> -----Original Message-----
> From: cygwin-owner On Behalf Of Volker Quetschke
> Sent: 27 May 2004 15:32
> Vince Hoffman wrote:
> >>>I somehow managed to create a file named nul (further investigation
> >>>pending), and now rm -rf hangs when trying to remove the
> >>>directory with
> >>>this file.
> >>
> >> Known ('doze) problem. Also occurs with filenames like
> aux, com1, lpt
> >>etc. The workaround is WDDTT.
> >>
> >
> > umm is that another way of saying, try
> > cmd /c dir /x
> > find 8.3 format name of file and them rm that.
Nope, it's a way of saying "The workaround is not to create files with the
names of special DOS devices in the first place"! [That's the difference
between a workaround and a solution...]
> Hmm,
>
> $ cmd /c dir /x
> Volume in drive C has no label.
> Volume Serial Number is 2C4B-5A99
>
> Directory of C:\cygwin\home\quetschke
>
> 05/27/2004 09:52 AM <DIR> .
> 05/27/2004 09:52 AM <DIR> ..
> 05/27/2004 09:52 AM 4 nul
>
> doesn't help :-(
How about
cmd /c 'del nu?.*'
Does that get it?
cheers,
DaveK
--
Can't think of a witty .sigline today....
--
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/