Bernhard Voelker wrote:
On 4/30/19 1:09 PM, Cristian Zoicas wrote:
The manual page of find says the following for the -prune action:
-prune
True; if the file is a directory, do not descend into it. If -depth is
given, false; no effect. Because -delete implies -depth, you
Dale R. Worley wrote:
Cristian Zoicas writes:
The following directory structure and the following statement show that -prune
does not return false when -depth is given.
mkdir -p test/s_files/
echo a-top > test/a-top.txt
echo s-top > test/s-top.txt
echo a > test/s_files/a.txt
echo
Hello all
The manual page of find says the following for the -prune action:
-prune
True; if the file is a directory, do not descend into it. If -depth is
given, false; no effect. Because -delete implies -depth, you cannot
usefully use -prune and -delete together.
So I unders