Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!cs.utexas.edu!uunet!auspex!guy From: guy@auspex.auspex.com (Guy Harris) Newsgroups: comp.unix.questions Subject: Re: Filenames and Inode Numbers Message-ID: <2295@auspex.auspex.com> Date: 27 Jul 89 19:04:49 GMT References: <20373@adm.BRL.MIL> Reply-To: guy@auspex.auspex.com (Guy Harris) Organization: Auspex Systems, Santa Clara Lines: 29 >Well almost every time. Our Suns have the -inum option but >our Unisys 5000 SYSV3.1 does not. Your Suns *document* the "-inum" option but your Unisys does not, I assume; this is different from "your Suns have the '-inum' option but your Unisys does not." "-inum" has been in "find" since V7, but the first time it was actually *documented* was in some BSD release, and the SunOS documentation picked it up from there; the folks who did S5 didn't bother documenting it. Try "-inum" on your Unisys and see if it works.... >The interesting thing is that the following : > > rm - -name > >works and removes the file called "-name" BUT gives an >an error anyway. That should work without a complaint on your Suns, since their "rm" command is BSD-derived and thus supports "-" as an option to tell it "everything after this is a file name, even if it begins with '-'". Your Unisys box should have a similar option, named "--", since the S5R3 "rm" uses "getopt" to parse its arguments and "getopt" handles "--", so try rm -- -name there.