delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/07/02/06:32:40

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Fri, 2 Jul 2004 14:30:05 +0400
From: 3APA3A <3APA3A AT SECURITY DOT NNOV DOT RU>
Reply-To: 3APA3A <3APA3A AT SECURITY DOT NNOV DOT RU>
Organization: http://www.security.nnov.ru
Message-ID: <152375198.20040702143005@SECURITY.NNOV.RU>
To: Michael Pfeiffer <michael DOT pfeiffer AT scch DOT at>
Cc: cygwin AT cygwin DOT com
Subject: Re: How to delete file "nul"?
In-Reply-To: <loom.20040702T111613-726@post.gmane.org>
References: <loom DOT 20040702T111613-726 AT post DOT gmane DOT org>
MIME-Version: 1.0
X-IsSubscribed: yes

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 cygwin AT cygwin DOT com:

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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019