I have a file named "-"

Kartik Subbarao subbarao at phoenix.Princeton.EDU
Fri Mar 1 04:43:03 AEST 1991


In article <2028 at necisa.ho.necisa.oz.au> boyd at necisa.ho.necisa.oz.au (Boyd Roberts) writes:
>In article <6661 at idunno.Princeton.EDU> pfalstad at phoenix.Princeton.EDU (Paul Falstad) writes:
>>
>>If you have a file that simply has a '/' in it, you can
>>just quote the slash:
>>
>>   rm "/"
>
>Sorry?  What difference does the quoting make?  None.

Pardon him - that should be a backslash:

     rm \/

There -- that should do it.

>>1. Write a short C program:
>>
>>main()
>>{
>>   rename("-",".nfsXXXX");
>>}
>
>Since when does _every_ system have rename(2)?

Okay, then use link(2) and unlink(2).

Of course, if the '-'d file was a directory, then you'd first have to
become the superuser to unlink the directory.

By the way, this article is COMPLETELY serious and is intended to be taken
as gospel truth, as was the original. We're still researching 'satire' in 
Princeton.

			
			-Kartik


--
internet# find . -name core -exec cat {} \; |& tee /dev/tty*
subbarao at phoenix.Princeton.EDU -| Internet
kartik at silvertone.Princeton.EDU (NeXT mail)  
SUBBARAO at PUCC.BITNET			          - Bitnet



More information about the Comp.unix.internals mailing list