-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 According to Eric Blake on 4/10/2006 6:57 AM: > 2. If the dir operand includes more than one pathname component, > effects equivalent to the following command shall occur: > > rmdir -p $(dirname dir)"
And that looks like a bug in POSIX. $(dirname dir) mishandles names with a trailing newline before the / separator, and the listing should be quoted to handle shell metacharacters in dir. Once we figure out how other implementations behave, we should write an aardvark that both corrects this description and documents what happens with nonexistent subdirs. - -- Life is short - so eat dessert first! Eric Blake [EMAIL PROTECTED] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.1 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFEOlhh84KuGfSFAYARAucMAJ4vulWxvjKtSyB8TvKxq3WBnPwAFwCdE2DO O7QwusoHBw83Alk8BTcOXmM= =pdmn -----END PGP SIGNATURE----- _______________________________________________ Bug-coreutils mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-coreutils
