Date: Mon, 17 Dec 2001 11:17:07 +0100 From: Cliff Sarginson <cliff@raggedclown.net> To: questions@freebsd.org Subject: Re: rm a file named "-l"? ;-) Message-ID: <20011217101707.GA2953@raggedclown.net> In-Reply-To: <20011217111215.I21241@xs4all.nl> References: <20011217111215.I21241@xs4all.nl>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Dec 17, 2001 at 11:12:15AM +0100, rene@xs4all.nl wrote: > $ ls > -l data.rawish > -s exec > data procmail > $ rm -l > rm: illegal option -- l > usage: rm [-f | -i] [-dPRrvW] file ... > unlink file > $ rm '-l' > rm: illegal option -- l > usage: rm [-f | -i] [-dPRrvW] file ... > unlink file > $ rm "-l" > rm: illegal option -- l > usage: rm [-f | -i] [-dPRrvW] file ... > unlink file > $ rm \-l > rm: illegal option -- l > usage: rm [-f | -i] [-dPRrvW] file ... > unlink file > > Can anyone tell me how to escape the '-' correctly, please? > I am not at my FBSD machine at the moment so I am not sure if this is supported, but try: rm -- -l -- Regards Cliff To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011217101707.GA2953>