Subject: Re: How to delete file "nul"?
From: 3APA3A <[email-masked]>
To: Michael Pfeiffer <[email-masked]>
Cc: [email-masked]
Date: Fri, 2 Jul 2004 14:30:05 +0400

Dear Michael Pfeiffer,

This  problem  is  not cygwin related. You can delete files like this by
using  "UNC"  style  of filename (this style prevents use of DOS devices
and  bypasses Windows 256 character limit for filename). For example, to
delete file from the root of d:\ drive use

del \\.\d:\nul

-- 
~/ZARAZA
http://www.security.nnov.ru/

--Friday, July 2, 2004, 1:29:02 PM, you wrote to [email-masked]:

MP> Hi

MP> bash allows to pipe to a file named "nul" e.g.:
MP> echo test > nul

MP> bash-2.05b$ ls -l
MP> total 1
MP> -rwxrwxrwx    1 pfeiffer mkgroup-        4 Jul  2 10:00 nul

MP> The problem is that this file can not be deleted.
MP> I was not able to delete it using the "rm" command in
MP> bash, or "del" in a windows command line or the
MP> windows explorer.

MP> Any idea how this file can be deleted, without
MP> booting an alternative OS?

MP> Regards,
MP> Michael

MP> --
MP> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
MP> Problem reports:       http://cygwin.com/problems.html
MP> Documentation:         http://cygwin.com/docs.html
MP> FAQ:                   http://cygwin.com/faq/

--
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/