Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!hplabs!hpl-opus!jewett From: jewett@hpl-opus.HP.COM (Bob Jewett) Newsgroups: comp.sys.hp Subject: Re: Re: Trying to remove a file called "-ls" Message-ID: <63300004@hpl-opus.HP.COM> Date: 13 Mar 89 21:28:55 GMT References: <1818@hp-sdd.hp.com> Organization: HP Labs, High Speed Electronics Dept., Palo Alto, CA Lines: 10 > Yes. The problem, of course, is that the shell is trying to interpret > the file name as command line options. So, just do something to make it > realize that it's actually the file name. The standard way of terminating options is to use the option "--", so to remove a file named "-ls" you could type "rm -i -- -ls". Note that this works for commands that adhere to the getopts standards even for arguments which are not files, and therefore cannot be referred to like "./-ls". Bob