Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!sdd.hp.com!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!cbfsb!danj1 From: Dan_Jacobson@ATT.COM Newsgroups: comp.unix.shell Subject: Re: Stupid question... Message-ID: <1991May29.013900.28988@cbfsb.att.com> Date: 29 May 91 01:39:00 GMT References: <1991May27.225630.18310@watdragon.waterloo.edu> <27620012@hp-lsd.COS.HP.COM> Sender: news@cbfsb.att.com Reply-To: Dan_Jacobson@ihlpz.ATT.COM Organization: AT&T-BL, Naperville IL, USA Lines: 13 In-Reply-To: jimr@hp-lsd.COS.HP.COM's message of 28 May 91 22: 46:23 GMT Originator: danj1@cbnewsf.cb.att.com >>>>> On 28 May 91 22:46:23 GMT, jimr@hp-lsd.COS.HP.COM (Jim Rogers) said: Jim> The reason you are having trouble with files beginning with "-" Jim> is that this character is used by the rm command to signify an Jim> option. It is specifically excluded as a valid first character Jim> for a file name, as far as the "rm" command is concerned. Jim> The following short peice of C code When $ rm some_nasty_file_name fails, I usually just do $ rm ./some_nasty_file_name