Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!elroy.jpl.nasa.gov!ncar!gatech!udel!princeton!phoenix.Princeton.EDU!subbarao From: subbarao@phoenix.Princeton.EDU (Kartik Subbarao) Newsgroups: comp.unix.internals Subject: Re: I have a file named "-" Keywords: sarcasm, humor, impairments thereof, idiots Message-ID: <6714@idunno.Princeton.EDU> Date: 28 Feb 91 17:43:03 GMT References: <1991Feb26.170212.22920@convex.com> <6661@idunno.Princeton.EDU> <2028@necisa.ho.necisa.oz.au> Sender: news@idunno.Princeton.EDU Lines: 43 In article <2028@necisa.ho.necisa.oz.au> boyd@necisa.ho.necisa.oz.au (Boyd Roberts) writes: >In article <6661@idunno.Princeton.EDU> pfalstad@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@phoenix.Princeton.EDU -| Internet kartik@silvertone.Princeton.EDU (NeXT mail) SUBBARAO@PUCC.BITNET - Bitnet