From owner-freebsd-questions Mon Dec 17 2:17:28 2001 Delivered-To: freebsd-questions@freebsd.org Received: from post.mail.nl.demon.net (post-10.mail.nl.demon.net [194.159.73.20]) by hub.freebsd.org (Postfix) with ESMTP id 73F1237B405 for ; Mon, 17 Dec 2001 02:17:18 -0800 (PST) Received: from [212.238.194.207] (helo=tanya.raggedclown.net) by post.mail.nl.demon.net with esmtp (Exim 3.33 #1) id 16Fupc-0000aL-00 for questions@freebsd.org; Mon, 17 Dec 2001 10:17:13 +0000 Received: by tanya.raggedclown.net (tanya.raggedclown.net, from userid 500) id 634A51147; Mon, 17 Dec 2001 11:17:07 +0100 (CET) Date: Mon, 17 Dec 2001 11:17:07 +0100 From: Cliff Sarginson To: questions@freebsd.org Subject: Re: rm a file named "-l"? ;-) Message-ID: <20011217101707.GA2953@raggedclown.net> References: <20011217111215.I21241@xs4all.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20011217111215.I21241@xs4all.nl> User-Agent: Mutt/1.3.24i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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