Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!hellgate.utah.edu!dog.ee.lbl.gov!ucbvax!tut.cis.ohio-state.edu!VAX1.CC.UAKRON.EDU!mcs.kent.edu!usenet.ins.cwru.edu!cwlim!dean From: dean@cwlim.INS.CWRU.Edu (Dean Cookson) Newsgroups: comp.unix.wizards Subject: Re: rm ./- (I have a file named "-") Message-ID: <1991Feb26.175824.11666@usenet.ins.cwru.edu> Date: 26 Feb 91 17:58:24 GMT References: <22834@hydra.gatech.EDU> Sender: news@usenet.ins.cwru.edu Reply-To: dean@po.CWRU.Edu Organization: Case Western Reserve Univ. Cleveland, Ohio, (USA) Lines: 37 Nntp-Posting-Host: cwlim.ins.cwru.edu In article rodney@dali.ipl.rpi.edu (Rodney Peck II) writes: >oh no. I sense impending doom. > > >In article <22834@hydra.gatech.EDU> gt2807a@prism.gatech.EDU (Benjamin H. Cowan) writes: >> >> I have a file whose name consists of the single character "-". I can't >>rm it or mv it or cat it or more it or anything to it. How can I get rid of >>it? > >Here's an answer and I've tested it: rm ./- What's wrong with 'rm - -filename'??? It's in TFM and works under SUN OS, AIX, and Ultrix. I assume it works under others too, but I only have access to those 3 at the moment. > > >please, please, please lets not start the flurry of dumb answers again and >the dumb flaming of of dumb answers. please? pretty please? >Rodney I don't think this qualifies as a dumb answer (it is the way TFM says to do it.) And I don't think it's a flame either. Just a simple way of doing the deed, and an explination of a feature put into rm to get around this particular problem. Hope it helps, Dean -- | Dean Cookson (Opinions? What opinions??) dean@po.cwru.edu | | Information Network Services DoD #207 AMA #573534 | | Case Western Reserve U. Cleveland, Oh 44106 1981 Honda CB750C | | 216-754-1834 (H) 216-368-2928 (W) 1988 Bianchi Limited | Brought to you by Super Global Mega Corp .com