coreutils icon indicating copy to clipboard operation
coreutils copied to clipboard

rm: when error during recursive, stops prematurely

Open niyaznigmatullin opened this issue 3 years ago • 0 comments

uutils doesn't remove b/d in the following example

$ mkdir -p b/a/p
$ mkdir b/c b/d
$ chmod -w b/a
$ rm -rf b
rm: cannot remove 'b': Permission denied
$ ls b
a d

but GNU removes b/d

That's probably because of fs::remove_dir_all behavior

niyaznigmatullin avatar Jul 17 '22 20:07 niyaznigmatullin