From owner-freebsd-questions Tue Nov 24 00:04:51 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id AAA20489 for freebsd-questions-outgoing; Tue, 24 Nov 1998 00:04:51 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from icarus.reshall.berkeley.edu (icarus.Reshall.Berkeley.EDU [169.229.87.90]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id AAA20484 for ; Tue, 24 Nov 1998 00:04:50 -0800 (PST) (envelope-from leonardc9@usa.net) Received: from [10.0.0.2] (power.leonard.com [10.0.0.2]) by icarus.reshall.berkeley.edu (8.8.8/8.8.8) with ESMTP id AAA20734 for ; Tue, 24 Nov 1998 00:23:00 -0800 (PST) (envelope-from leonardc9@usa.net) Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Sender: leonardc@uclink4.berkeley.edu Message-Id: X-mailer: Eudora Pro 4.0.1 Macintosh Date: Tue, 24 Nov 1998 00:12:25 -0800 To: questions@FreeBSD.ORG From: "Leonard C." Subject: How to delete files starting with "-"? Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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! 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