Path: utzoo!mnetor!uunet!lll-winken!lll-tis!ames!ucsd!sdcsvax!ucsdhub!hp-sdd!hplabs!hpda!hpcupt1!hpcuhb!hpcllla!hpclisp!hpcljws!jws From: jws@hpcljws.HP.COM (John Stafford) Newsgroups: comp.unix.wizards Subject: Re: Re^2: an rm question Message-ID: <670015@hpcljws.HP.COM> Date: 23 Apr 88 00:45:55 GMT References: <734@ambush.UUCP> Organization: HP NSG/ISD Computer Language Lab Lines: 14 Note rm -f './*' is not necessary as rm -f '*' will work just fine (the ''s inhibit expansion of the *). And yes it is dangerous. Using unlink ("-fr *"); in a C program is going to try to unlink a file named -fr * to unlink a file named * in a C program use unlink ("*"); John 'picky picky picky' Stafford