From owner-freebsd-questions Mon Dec 17 2:18:40 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mail2.resfeber.se (Resfeber-gw.customer.internet5.net [195.66.48.230]) by hub.freebsd.org (Postfix) with ESMTP id 22D4C37B419 for ; Mon, 17 Dec 2001 02:18:32 -0800 (PST) Received: from resfeber.se ([212.75.72.9]) by mail2.resfeber.se (8.9.3/8.9.3) with ESMTP id LAA10843; Mon, 17 Dec 2001 11:18:25 +0100 Message-ID: <3C1DC5D5.2955D5FF@resfeber.se> Date: Mon, 17 Dec 2001 11:15:49 +0100 From: Jon Molin X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: rene@xs4all.nl Cc: questions@FreeBSD.ORG Subject: Re: rm a file named "-l"? ;-) References: <20011217111215.I21241@xs4all.nl> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 use the full path or ./ rm ./-l /Jon 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? > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message