GNU bug report logs -
#12400
rmdir: add --one-file-system option
Previous Next
Reported by: Linda Walsh <coreutils <at> tlinx.org>
Date: Mon, 10 Sep 2012 00:32:01 UTC
Severity: wishlist
Tags: wontfix
Done: Assaf Gordon <assafgordon <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
Message #61 received at submit <at> debbugs.gnu.org (full text, mbox):
On 2/10/2019 1:52 PM, Bob Proulx wrote:
> L A Walsh wrote:
>>>> If you want a recursive option why not use 'rm -rf'?
>> rmdir already provides a recursive delete that can cross
>> file system boundaries
>
> Please provide an example. Something small. Something concrete.
> Please include the version of rmdir.
The original bug stems from having to use wild cards to delete
all files in a directory instead of '.', as in being told to use:
rm -fr --one-filesystem foo/*
instead of
rm -fr --one-filesystem foo/. or
cd foo && rm -fr --one-filesystem .
The recommended solution to use foo/* won't stay on 1 file
system, while an alternative using '.' would.
if I use rm --one-filesystem a b c, I could be deleting
files off of 3 file systems. Why would the argument be named
'one-filesystem' if there as no way to ensure that all files
were only on 1 file system?
This bug report was last modified 6 years and 164 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.