Path: utzoo!attcan!uunet!ncrlnk!ncrcae!hubcap!gatech!ukma!xanth!lll-winken!ncis.llnl.gov!helios.ee.lbl.gov!ace.ee.lbl.gov!leres From: leres@ace.ee.lbl.gov (Craig Leres) Newsgroups: comp.sys.hp Subject: Re: Trying to remove a file called "-ls" Message-ID: <2089@helios.ee.lbl.gov> Date: 11 Mar 89 10:42:49 GMT References: <570@sdrc.UUCP> <2087@helios.ee.lbl.gov> <2088@helios.ee.lbl.gov> Sender: usenet@helios.ee.lbl.gov Reply-To: leres@helios.ee.lbl.gov (Craig Leres) Organization: Lawrence Berkeley Laboratory, Berkeley Lines: 16 John Milburn writes: >In article <570@sdrc.UUCP> diblanch@sdrc.UUCP (Jeff Blanchet) writes: >>I seem to have stumbled across a bug that occurs on the HP. I created a file >>called "-ls". Now on any other UNIX system all I have to do is issue the > >Try rm "-ls". This may work under hpux, but it doesn't under Berkeley Unix. My favorate way to remove a file with a leading dash is: % rm foo -ls It doesn't matter if foo exists or not; once it sees an argument that doesn't have a leading dash, it stops looking. Craig