-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 According to jl malet on 1/24/2007 3:28 AM: > hello > thoses 2 utils have problem when files/path contain '-' character which > is interpreted as an option..... > this addition of the gnu tools isn't in posix or the open group > specification which have no option.... the best is to have no option > best regards
Thanks for the report. However, this is not a bug, but a misunderstanding on your part of what POSIX requires. 'dirname -- -file' is the correct way to invoke dirname on something starting with -. POSIX does not require the support of any options, but it ALSO does not forbid any options as extensions. POSIX is quite clear that except for a few special cases (such as test and echo), users of utilities specified by POSIX must properly separate filenames from options using -- if the filename could be interpreted as an option, because implementations are allowed to add options as extensions. - -- Don't work too hard, make some time for fun as well! Eric Blake [EMAIL PROTECTED] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFt2z584KuGfSFAYARAoUFAJ0by8wHpPnRKbjhYNv6BnDuErSLPwCeJQNX x9LOHY/LM4y5Bt967GrLIAU= =+gX2 -----END PGP SIGNATURE----- _______________________________________________ Bug-coreutils mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-coreutils
