bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: rmdir -p foo/bar/nonexistent


From: Eric Blake
Subject: Re: rmdir -p foo/bar/nonexistent
Date: Mon, 10 Apr 2006 07:06:41 -0600
User-agent: Thunderbird 1.5 (Windows/20051201)

-----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             address@hidden
-----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-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]