Subject: Re: Unremovable file
To: Daniel Parks <danielp@reed.edu>
From: Richard Pennington <rich@introl.com>
List: port-mac68k
Date: 10/11/2000 08:07:34
When this happened to me, I did a

hexdump -C .

and found the actual hex bytes in the file name. Then
I wrote a small C program:

char name[] = { 0x... };	// actual hex bytes

int main()
	{
	unlink(name);
	}

-Rich

On Wed, 11 Oct 2000, Daniel Parks wrote:
> >Try:
> >	rm ./-*
> >	Either 'rm -- nastyfile' or 'rm ./nastyfile'.
> >	rm *something
> >	rm -- -file
> 
> Oh, duh. Why didn't I think of using ./?
> I didn't know about --.
> 
> Unfortunately, * seems to miss this file. I type qrm (the name of the 
> c program I wrote) -<tab->nasty>* (because I have 2 files, -nastybad 
> and -nastyevil) and it replies that it cannot find a file named 
> -nasty*. I've also tried typing various letters then pressing tab so 
> I can get a complete name, but none of the characters work.
> 
> Thanks for your help,
> Daniel
-- 
Richard Pennington		Introl Corporation, Milwaukee, WI USA
Email: rich@introl.com		Phone: +1 414-273-6100	Fax: +1 414-273-6106
				US and Canada: 1 800-327-7171
Cross development tools for the 68HC05, 68HC08, 6809, 68HC11, 68HC12, 68HC16,
and 68XXX:			http://www.introl.com	ftp://ftp.introl.com