Tracy R Reed wrote:
Carl Lowenstein wrote:
It's not a property of "rmdir", it is a property of the shell. You
realize, of course, that you were asking perhaps the most Frequently
Asked of all Frequently Asked Questions.
Years ago I too once asked this question. Don't recall where I found the
answer but it is a tricky one almost everyone asks at some point. How is
the special handling of -- a property of the shell? I thought the --
and -p and everything were just put into ARGV and rm itself parsed the
--. I just looked at getopt(3) and this seems to be the case. Any tool
that links in libgetopt for command line option parsing will get this
behavior.
Well, the normal way around this is the "--" option which seems to be
standard. However, that didn't work in the olden days ...
The magic command to get rid of that file was:
unlink
Because unlink took no options.
-a
--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list