On Wed, Jul 12, 2000 at 07:43:10AM -0500, Bret Hughes wrote:
>
> Thanks to both of you. I hope I can remember it next time but at least now
> it is archived :)
[...]
> Gordon's suggestion of -- seems to be using
> functionallity of the shell,
Well, the "--" approach is what's listed in the rm man page. AFAIR
(I can't check at the moment, as I'm sitting in front of a Solaris box),
Linux is using the GNU rm. From the GNU rm man page is the following
excerpt:
<quote>
GNU rm, like every program that uses the getopt function to
parse its arguments, lets you use the -- option to indicate
that all following arguments are non-options. To remove a
file called `-f' in the current directory, you could type
either
rm -- -f
or
rm ./-f
The Unix rm program's use of a single `-' for this purpose
predates the development of the getopt standard syntax.
</quote>
So, if I'm right in assuming that Linux uses the GNU rm, the correct
answer to your initial question would have been: RTFM... ;-)
HTH,
Thomas
--
"Look, Ma, no obsolete quotes and plain text only!"
Thomas Ribbrock | http://www.bigfoot.com/~kaytan | ICQ#: 15839919
"You have to live on the edge of reality - to make your dreams come true!"
--
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.