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.
-- [email protected] http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list
