Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs Date: Thu, 27 May 2004 10:59:27 -0400 (EDT) From: Igor Pechtchanski Reply-To: cygwin AT cygwin DOT com To: Volker Quetschke cc: cygwin AT cygwin DOT com Subject: Re: redirection can create nul files - Was: rm hangs on illegal filename nul In-Reply-To: <40B5FE65.5080609@scytek.de> Message-ID: References: <40B5F6EB DOT 5030200 AT scytek DOT de> <40B5FE65 DOT 5080609 AT scytek DOT de> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Scanned-By: MIMEDefang 2.39 On Thu, 27 May 2004, Volker Quetschke wrote: > Just FYI and for the archives: > > > Any ideas how to remove the nul files? Really, I don't want to > > format my disk because of this. > You can fool NTFS into not doing reserve-word checking with: > > DEL \\.\c:\somedir\nul > > You propably have to use the correct quotes, or use cmd.exe, > like I did. > > Volker A couple more datapoints: - You can also create "nul" by "touch nul". - You can use forward slashes, so "rm //./c:/somedir/nul" works. - For me (on Win2k SP3), "rm nul" doesn't hang, but doesn't do anything either. $ uname -a CYGWIN_NT-5.0 pechtcha 1.5.10(0.116/4/2) 2004-05-25 22:07 i686 unknown unknown Cygwin Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu ZZZzz /,`.-'`' -. ;-;;,_ igor AT watson DOT ibm DOT com |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! "I have since come to realize that being between your mentor and his route to the bathroom is a major career booster." -- Patrick Naughton -- 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/