[EMAIL PROTECTED] (Eric Blake) wrote: ... > On a related note, why don't rm and rmdir have a --strip-trailing-slashes > option?
Because as far as I know, there is no need. Do you know of a system where `rmdir symlink/' removes only the referent of the symlink? ... > Oops - cygwin has a bug in this regards: > $ mkdir dir > $ rmdir dir/. > $ echo $? > 0 > $ ls dir > ls: dir: No such file or directory > > Is it worth patching coreutils rm and rmdir to work around buggy > systems that don't follow this POSIX restriction on rmdir()? (Meanwhile, > I will try to get cygwin fixed.) Should we update the coreutils testsuite? It depends a whole lot on how invasive or complicated the patch is. Ideally, it wouldn't change anything in src/*.c at all. _______________________________________________ Bug-coreutils mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-coreutils
