Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watnot!watdragon!kcwellsch From: kcwellsch@watdragon.UUCP Newsgroups: comp.os.minix Subject: Removing "-" prefixed files Message-ID: <2375@watdragon.UUCP> Date: Mon, 2-Mar-87 09:09:54 EST Article-I.D.: watdrago.2375 Posted: Mon Mar 2 09:09:54 1987 Date-Received: Mon, 2-Mar-87 21:10:35 EST References: <496@ubu.warwick.UUCP> <9490002@hpfclp.HP.COM> Reply-To: kcwellsch@watdragon.UUCP (Ken Wellsch) Organization: U. of Waterloo, Ontario Lines: 18 >I don't think MINIX is to blame here for rm. This is because if you say >something like "rm -foobar" it looks like an option to rm. I have seen this >behavior in most UNIX systems. You can do something like "rm -i *foobar" to >get rid of files like this. The best solution I've seen for removing files that begin with "-" is just: % rm ./- ./-foobar ... By putting a valid directory path in front, "rm" will not see a "-" prefix. Equally applicable is "../dir/-" and the list goes on... Classic ways to produce a file starting with "-"? Have you ever tried % cc -O -o -c file file.c where you've accidentally got "-o" and "-c" swapped?