delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/07/21/14:37:15

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
To: cygwin AT cygwin DOT com
From: zzapper <david AT tvis DOT co DOT uk>
Subject: Re: How to delete rogue nul files
Date: Wed, 21 Jul 2004 19:36:51 +0100
Lines: 52
Message-ID: <8kdtf05infgbbo6ldgptpm2ki2qec2lcj0@4ax.com>
References: <65btf0146rhs3cv5io36oid3nm42k09una AT 4ax DOT com> <NUTMEGq2gEIn3qDlYDI000009d4 AT NUTMEG DOT CAM DOT ARTIMI DOT COM>
Mime-Version: 1.0
X-Complaints-To: usenet AT sea DOT gmane DOT org
X-Gmane-NNTP-Posting-Host: cpc3-oxfd4-4-0-cust194.oxfd.cable.ntl.com
X-Newsreader: Forte Free Agent 1.93/32.576 English (American)
X-IsSubscribed: yes

On Wed, 21 Jul 2004 19:05:05 +0100,  wrote:

>> -----Original Message-----
>> From: cygwin-owner On Behalf Of zzapper
>> Sent: 21 July 2004 18:51
>
>> >>>> I recently seem to be leaving nul files around my file system 
>> >>>> which I cannot delete from Cyg or Win
>
>> >>>DEL \\.\c:\somedir\nul
>
>> >>no luck
>> >>
>> >>C:\inetpub\wwwdev\www.planet.com>del nul
>> >>The filename, directory name, or volume label syntax is incorrect.
>
>> >Use the syntax Dave suggested and you'll have better luck.
>
>> That zeroed the file, but it's still undeletable. But what is 
>> that wierd delete syntax??
>
>  Actually, it may have genuinely deleted it after all, but it might also
>look as if it was still there, depending how you look.
>
>  It's easy to think the file is still there if you look for it by doing "ls
>-l nul", because for some reason that will always succeed, regardless of
>whether or not there actually is a nul-named file in the directory you're
>looking in.  Compare the results of "ls -l nul" and "ls -l | grep nul" and
>you'll see what I mean.
>
DK,
ls -l | grep nul

Absolutely right, I could see that it had disappeared from Win, but was fooled into thinking I could
still see it in Cyg. 

What a wonderful conundrum!! Where are the nuls likely to have originated from??


Frustra laborant quotquot  fatigant deletum nul (Bad Latin)






zzapper (vim, cygwin, wiki & zsh)
--

vim -c ":%s/^/WhfgTNabgureRIvzSUnpxre/|:%s/[R-T]/ /Ig|:normal ggVGg?"

http://www.vim.org/tips/tip.php?tip_id=305  Best of Vim Tips


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