From owner-freebsd-questions Mon Dec 17 2:18:31 2001 Delivered-To: freebsd-questions@freebsd.org Received: from whale.sunbay.crimea.ua (whale.sunbay.crimea.ua [212.110.138.65]) by hub.freebsd.org (Postfix) with ESMTP id A99E937B41D for ; Mon, 17 Dec 2001 02:18:23 -0800 (PST) Received: (from ru@localhost) by whale.sunbay.crimea.ua (8.11.6/8.11.2) id fBHAI5B64341; Mon, 17 Dec 2001 12:18:05 +0200 (EET) (envelope-from ru) Date: Mon, 17 Dec 2001 12:18:05 +0200 From: Ruslan Ermilov To: rene@xs4all.nl Cc: questions@FreeBSD.ORG Subject: Re: rm a file named "-l"? ;-) Message-ID: <20011217121805.A60870@sunbay.com> 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.23i 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? > 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