Date: Mon, 17 Dec 2001 11:15:49 +0100 From: Jon Molin <Jon.Molin@resfeber.se> To: rene@xs4all.nl Cc: questions@FreeBSD.ORG Subject: Re: rm a file named "-l"? ;-) Message-ID: <3C1DC5D5.2955D5FF@resfeber.se> References: <20011217111215.I21241@xs4all.nl>
next in thread | previous in thread | raw e-mail | index | archive | help
use the full path or ./ rm ./-l /Jon 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? > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message 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?3C1DC5D5.2955D5FF>