Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Dec 2001 12:18:05 +0200
From:      Ruslan Ermilov <ru@FreeBSD.ORG>
To:        rene@xs4all.nl
Cc:        questions@FreeBSD.ORG
Subject:   Re: rm a file named "-l"? ;-)
Message-ID:  <20011217121805.A60870@sunbay.com>
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?
> 
Please see the NOTE section of the rm(1) manpage.


Cheers,
-- 
Ruslan Ermilov		Oracle Developer/DBA,
ru@sunbay.com		Sunbay Software AG,
ru@FreeBSD.org		FreeBSD committer,
+380.652.512.251	Simferopol, Ukraine

http://www.FreeBSD.org	The Power To Serve
http://www.oracle.com	Enabling The Information Age

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?20011217121805.A60870>