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 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 Cc: cygwin AT cygwin DOT com Subject: Re: How to delete file "nul"? In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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/