bug-coreutils
[Top][All Lists]
Advanced

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

bug#12339: Bug: rm -fr . doesn't dir depth first deletion yet it is docu


From: Paul Eggert
Subject: bug#12339: Bug: rm -fr . doesn't dir depth first deletion yet it is documented to do so.
Date: Mon, 03 Sep 2012 13:04:31 -0700
User-agent: Mozilla/5.0 (X11; Linux i686; rv:15.0) Gecko/20120827 Thunderbird/15.0

I was about to suggest the following, on GNU/Linux:

  # Don't do this unless you know what you're doing!
  rm -fr /proc/self/cwd/

Except it doesn't work!  Not even if I append '.':

  $ mkdir /tmp/victim
  $ cd /tmp/victim
  $ touch foo
  $ rm -fr /proc/self/cwd/
  rm: cannot remove `/proc/self/cwd': Too many levels of symbolic links
  $ rm -fr /proc/self/cwd/.
  rm: cannot remove directory: `/proc/self/cwd/.'
  $ ls
  foo

Aren't these bugs, at least?





reply via email to

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