From owner-freebsd-questions Mon Mar 4 07:19:33 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id HAA07006 for questions-outgoing; Mon, 4 Mar 1996 07:19:33 -0800 (PST) Received: from gilberto.physik.rwth-aachen.de (gilberto.physik.rwth-aachen.de [137.226.31.2]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id HAA06957 for ; Mon, 4 Mar 1996 07:19:15 -0800 (PST) Received: (from kuku@localhost) by gilberto.physik.rwth-aachen.de (8.6.11/8.6.9) id QAA19349; Mon, 4 Mar 1996 16:18:06 +0100 From: "Christoph P. Kukulies" Message-Id: <199603041518.QAA19349@gilberto.physik.rwth-aachen.de> Subject: Re: How to delete strange filename To: chuckr@Glue.umd.edu (Chuck Robey) Date: Mon, 4 Mar 1996 16:18:05 +0100 (MET) Cc: james@teamos2.org, freebsd-questions@FreeBSD.ORG In-Reply-To: from "Chuck Robey" at Mar 4, 96 09:13:30 am Reply-To: Christoph Kukulies X-Mailer: ELM [version 2.4 PL25 ME8b] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@FreeBSD.ORG Precedence: bulk > > On Sun, 3 Mar 1996, James FitzGibbon wrote: > > > > > 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). The problem only is that sometimes the filename contains ctrl characters , backspace and such and you can't figure out what the filename really is. I use rm -i * (or a narrower pattern) in such a case and shoot out the respective file. > > > > Is there something I can use to change the switch character, like some of > > the DOS C library calls can ? > > When I get some really strange filename, I write up a really short C > program with one call to unlink("really_strange_filename"). It's worked > in every case. > > > > > > > j. > > > > PS: Please reply directly, as I'm not on the list. > > > > > > ---------------------------------------------------------------------------- > > James FitzGibbon james@teamos2.org > > > > TeamOS/2 Online admin Voice:(416)410-0100 > > Fax:(416)410-0100 > > ---------------------------------------------------------------------------- > > > > ========================================================================== > Chuck Robey chuckr@eng.umd.edu, I run FreeBSD-current on n3lxx + Journey2 > > Three Accounts for the Super-users in the sky, > Seven for the Operators in their halls of fame, > Nine for Ordinary Users doomed to crie, > One for the Illegal Cracker with his evil game > In the Domains of Internet where the data lie. > One Account to rule them all, One Account to watch them, > One Account to make them all and in the network bind them. > > > --Chris Christoph P. U. Kukulies kuku@gil.physik.rwth-aachen.de