[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#12400: rmdir runs "amok", users "curse" GNU...(as rmdir has no optio
From: |
Assaf Gordon |
Subject: |
bug#12400: rmdir runs "amok", users "curse" GNU...(as rmdir has no option to stay on 1 file system)... |
Date: |
Fri, 18 Jan 2019 01:32:49 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 |
retitle 12400 rmdir: add --one-file-system option
severity 12400 wishlist
tags 12400 wontfix
stop
(triaging old bugs)
Hello,
On 2012-09-09 11:22 p.m., Bob Proulx wrote:
Linda Walsh wrote:
If you are going to only provide 1 mode of functionality, it should
be to only rmdir dirs on the same file system as the starting args.
[...]
But rmdir only removes the directories you tell it to remove.
[...]
If you want a recursive option why not use 'rm -rf'?
There is always 'find' with the -delete option. But regardless there
has been the find -exec option.
find /some/path -type d -delete
find /some/path -depth -type d -exec rmdir {} +
With no further comments in 6 years, I'm closing this
request.
regards,
- assaf
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- bug#12400: rmdir runs "amok", users "curse" GNU...(as rmdir has no option to stay on 1 file system)...,
Assaf Gordon <=