Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Dec 2001 11:12:15 +0100
From:      rene@xs4all.nl
To:        questions@freebsd.org
Subject:   rm a file named "-l"? ;-)
Message-ID:  <20011217111215.I21241@xs4all.nl>

next in thread | raw e-mail | index | archive | help
 $ 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011217111215.I21241>