From owner-freebsd-questions Mon Dec 17 2:12:20 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mxzilla2.xs4all.nl (mxzilla2.xs4all.nl [194.109.6.50]) by hub.freebsd.org (Postfix) with ESMTP id AE0E937B419 for ; Mon, 17 Dec 2001 02:12:17 -0800 (PST) Received: from xs4.xs4all.nl (rene@xs4.xs4all.nl [194.109.6.45]) by mxzilla2.xs4all.nl (8.12.0/8.12.0) with ESMTP id fBHACGbV047088 for ; Mon, 17 Dec 2001 11:12:16 +0100 (CET) Received: (from rene@localhost) by xs4.xs4all.nl (8.9.0/8.9.0) id LAA06874 for questions@freebsd.org; Mon, 17 Dec 2001 11:12:15 +0100 (CET) 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> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i 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 $ 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