From: Michael Pereckas (mper@uipsuxb.ps.uiuc.edu)
Date: 06/15/92


From: mper@uipsuxb.ps.uiuc.edu (Michael Pereckas)
Subject: Re: How do I delete file named "-I" ?
Date: 15 Jun 1992 06:49:40 GMT

thoth@uiuc.edu (Ben Cox) writes:

>jason@intrepid.ucr.edu (Jason Bishop) writes:

>> Try rm - -I Leading - tells rm that there are no arguments, all following
>> text are files to delete. Also works with cp, mv, etc...

>Unfortunately, that doesn't work. "rm - -I" gives "rm: -: No such
>file or directory". This is the standard answer to this question,
>though, and I have never gotten it to work on any unix system. The
>BSD manpage even says that this is the answer. It is not.

rm -- -I

Works for me. I just tested it. I created the test file with

touch -- -I

This is with the newest GNU utilities.

Michael Pereckas