From owner-freebsd-questions Tue Nov 24 00:15:43 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id AAA21474 for freebsd-questions-outgoing; Tue, 24 Nov 1998 00:15:43 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from post.mail.demon.net (post-20.mail.demon.net [194.217.242.27]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id AAA21468 for ; Tue, 24 Nov 1998 00:15:41 -0800 (PST) (envelope-from marko@uk.radan.com) Received: from [158.152.75.22] (helo=uk.radan.com) by post.mail.demon.net with smtp (Exim 2.053 #1) id 0ziDdK-0007FR-00; Tue, 24 Nov 1998 08:15:38 +0000 Organisation: Radan Computational Ltd., Bath, UK. Phone: +44-1225-320320 Fax: +44-1225-320311 Received: from beavis.uk.radan.com (beavis [193.114.228.122]) by uk.radan.com (8.6.10/8.6.10) with SMTP id IAA01571; Tue, 24 Nov 1998 08:15:34 GMT Received: from uk.radan.com (gppsun4) by beavis.uk.radan.com (4.1/SMI-4.1) id AA02382; Tue, 24 Nov 98 08:15:32 GMT Message-Id: <365A6AF8.5B660D59@uk.radan.com> Date: Tue, 24 Nov 1998 08:14:48 +0000 From: Mark Ovens Organization: Radan Computational Ltd X-Mailer: Mozilla 4.03 [en] (X11; I; SunOS 4.1.3_U1 sun4m) Mime-Version: 1.0 To: "Leonard C." Cc: questions@FreeBSD.ORG Subject: Re: How to delete files starting with "-"? References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Leonard C. wrote: > > I accidentally created a file starting with a dash, and can't seem to > delete it. mv, cp, and rm all interpret the dash as an argument. > > If "-foo" is the name of the file, I've tried "-foo", '-foo', and \-foo, > but none of them work since these just affect the shell rather than the > actual parsing of the command itself. Any ideas? This is driving me > *absolutely* crazy! > rm - -foo Note the space between the 2 "-"'s > Thanks, > > Leonard > > -- > Support the Blue Ribbon Campaign for free speech online () > http://www.eff.org/blueribbon.html /\ > "Those who will not reason perish in the act. > Those who will not act, perish for that reason." - W. H. Auden > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message -- Trust the computer industry to shorten Year 2000 to Y2K. It was this thinking that caused the problem in the first place. Mark Ovens, CNC Applications Engineer, Radan Computational Ltd. Bath, Avon, England. Sheet Metal CAD/CAM Solutions mailto:marko@uk.radan.com http://www.radan.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message