Filenames and Inode Numbers
Guy Harris
guy at auspex.auspex.com
Fri Jul 28 05:04:49 AEST 1989
>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.
More information about the Comp.unix.questions
mailing list