Re: The returned value of -prune and its documentation

2019-05-10 Thread Cristian Zoicas
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 ca

Re: The returned value of -prune and its documentation

2019-05-09 Thread Bernhard Voelker
On 5/5/19 12:31 PM, Bernhard Voelker wrote: > Indeed, find.1 is wrong. The attached fixes it. Pushed at: https://git.sv.gnu.org/cgit/findutils.git/commit/?id=6743fefc3a1f Have a nice day, Berny

Re: The returned value of -prune and its documentation

2019-05-05 Thread Bernhard Voelker
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 cannot >usefully

Re: The returned value of -prune and its documentation

2019-05-02 Thread Cristian Zoicas
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 s1 > test/

Re: The returned value of -prune and its documentation

2019-04-30 Thread Dale R. Worley
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 s1 > test/s_files/s1.tx

The returned value of -prune and its documentation

2019-04-30 Thread Cristian Zoicas
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