bug-coreutils
[Top][All Lists]
Advanced

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

bug#25817: Why were Gnu coding standards violated in favor of posix for


From: L A Walsh
Subject: bug#25817: Why were Gnu coding standards violated in favor of posix for 'rm -fr .'?: request for reversion of behavior
Date: Tue, 21 Feb 2017 00:41:26 -0800
User-agent: Thunderbird



Or are you arguing that contents within the directory should be removed,
even though the directory itself cannot be?
---
        That's the way a recursive descent algorithm
works: it processes the contents, before the parents.

When it gets to the parent, it couldn't remove it, but
due to the "-f", silently failed.

        Do you really need me to find the older version
of 'rm' in your source tree?

        you know as well as I do, that the verbiage
about disallowing all subpaths under '.' wasn't in earlier
posix versions (say 2001 or before).

        It's not a matter of finding where it says it
is "allowed", rm was always recursive descent and posix
didn't disallow it.
        Gnu says not to remove features or
behaviors due to changing posix standards...
So the old behavior should be reinstated as
default, and those that want the new behavior can
use POSIX_CORRECTLY (or whatever it is)...





reply via email to

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