From owner-freebsd-questions Sun Mar 3 21:15:50 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id VAA04423 for questions-outgoing; Sun, 3 Mar 1996 21:15:50 -0800 (PST) Received: from fly.HiWAAY.net (root@[204.214.4.2]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id VAA04416 for ; Sun, 3 Mar 1996 21:15:48 -0800 (PST) Received: from max4-188.HiWAAY.net by fly.HiWAAY.net; (5.65v3.0/1.1.8.2/21Sep95-1003PM) id AA21368; Sun, 3 Mar 1996 23:15:39 -0600 Message-Id: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Date: Sun, 3 Mar 1996 23:15:42 -0600 To: James FitzGibbon From: dkelly@hiwaay.net (David Kelly) Subject: Re: How to delete strange filename Cc: freebsd-questions@freebsd.org Sender: owner-questions@freebsd.org Precedence: bulk >Okay, stupid question here: > >Somehow, I've got a file called "-i" in my home directory. How do I >remove it? Everything I've tried attempts to parse the "-i" as a >parameter, even with quotes (all varieties). > >Is there something I can use to change the switch character, like some of >the DOS C library calls can ? rm ./-i The leading "./" will cause the switch character detect to fail, yet it says, "This directory, the file -i" which is what you want. -- David Kelly N4HHE, n4hhe@amsat.org, dkelly@hiwaay.net ============================================================= To invent, you need a good imagination and a pile of junk. - Thomas Edison