Return to BSD News archive
Newsgroups: comp.os.386bsd.questions Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!agate!howland.reston.ans.net!pipex!uunet!psinntp!newstand.syr.edu!rodan.syr.edu!smcarey From: smcarey@rodan.syr.edu (Shawn M Carey) Subject: Re: How do you rm a strange file? Message-ID: <1993Nov21.231214.1258@newstand.syr.edu> Organization: Syracuse University, Syracuse, NY References: <CGrCK8.JBC@mcs.anl.gov> <1993Nov20.195548.20444@newstand.syr.edu> <1993Nov21.154452.1970@Informatik.TU-Muenchen.DE> Date: Sun, 21 Nov 93 23:12:14 EST Lines: 17 In article <1993Nov21.154452.1970@Informatik.TU-Muenchen.DE> wiserner@Informatik.TU-Muenchen.DE (Bernd Wiserner) writes: >In article <1993Nov20.195548.20444@newstand.syr.edu> smcarey@rodan.syr.edu (Shawn M Carey) writes: >> >> There is a "--" flag that appears to be undocumented in the >>man page which tells rm to allow '-' as the first character of a >>filename argument. >> >>% rm -- -lg >> >rm hubba-dubba "-f" ( hubba-dubba may be replaced iwth a filename which doesn't exist.) > True, but if you're fussy about these things the '--' won't give you an error message for "hubba-dubba". '--' tells getopt to stop interpreting things as option switches. -Shawn Carey