GNU bug report logs - #12400
rmdir: add --one-file-system option

Previous Next

Package: coreutils;

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 #20 received at 12400 <at> debbugs.gnu.org (full text, mbox):

From: Bob Proulx <bob <at> proulx.com>
To: Linda Walsh <coreutils <at> tlinx.org>
Cc: 12400 <at> debbugs.gnu.org
Subject: Re: bug#12400: rmdir runs "amok", users "curse" GNU...(as rmdir has
	no option to stay on 1 file	system)...
Date: Sun, 9 Sep 2012 23:14:40 -0600
Linda Walsh wrote:
> or how do I remove all the files in /tmp, but not have it descend
> into any file systems mounted in tmp?

I think it is really problematic to mount filesystems under /tmp.
That would be a really crazy situation.  I wouldn't do it.

But...

  find /tmp -xdev -mindepth 1 -delete

       -xdev  Don't descend directories on other filesystems.

The -mindepth 1 prevents it from matching /tmp itself.

Bob




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.