From owner-freebsd-questions Mon Jul 19 17: 4:38 1999 Delivered-To: freebsd-questions@freebsd.org Received: from mailgw01.execpc.com (mailgw01.execpc.com [169.207.2.78]) by hub.freebsd.org (Postfix) with ESMTP id 1D22814C21 for ; Mon, 19 Jul 1999 17:04:30 -0700 (PDT) (envelope-from hamilton@pobox.com) Received: from woodstock.monkey.net (obica-2-49.mdm.mkt.execpc.com [169.207.88.177]) by mailgw01.execpc.com (8.9.1) id TAA29948; Mon, 19 Jul 1999 19:03:12 -0500 Received: from pobox.com (localhost [127.0.0.1]) by woodstock.monkey.net (Postfix) with ESMTP id 3A360148; Mon, 19 Jul 1999 19:03:06 -0500 (CDT) To: Doug Cc: Chris , freebsd-questions@FreeBSD.ORG Subject: Re: whoops, can't remove file :\ In-reply-to: Your message of "Mon, 19 Jul 1999 16:42:15 PDT." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 19 Jul 1999 19:03:06 -0500 From: Jon Hamilton Message-Id: <19990720000306.3A360148@woodstock.monkey.net> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In message , Dou g wrote: [ chris created a file with a dash as its first character ] } Try this } rm -i *h No, don't. Well, you can try it, but it won't work. Someone else posted an answer saying to use -- to end the options, like $ rm -- -h to remove a file called ``-h''. That'll work, as will the slightly more generic (i.e. not specific to commands that use getopt to parse their command line arguments): $ rm ./-h This is covered in the comp.unix.questions FAQ. -- Jon Hamilton hamilton@pobox.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message