On 2019-07-28 積丹尼 Dan Jacobson <jida...@jidanni.org> wrote:
> Please make this not make error messages.
> # mkdir /tmp/nnn
> # mkdir /tmp/nnn/ooo
> # find /tmp/nnn -type d -ok rmdir {} \;
> < rmdir ... /tmp/nnn > ?
> < rmdir ... /tmp/nnn/ooo > ? y
> find: ‘/tmp/nnn/ooo’: No such file or directory
> # find /tmp/nnn -type d
> /tmp/nnn

> (The user cannot just use "-ok -delete.")
> $ find --version
> find (GNU findutils) 4.6.0.235-f254

quoting texinfo manual:
9.3 Cleaning Up
===============
[...]
   If your 'find' command removes directories, you may find that you get
a spurious error message when 'find' tries to recurse into a directory
that has now been removed.  Using the '-depth' option will normally
resolve this problem.

Reply via email to