Bug#626640: [php-maint] Bug#626640: Small optimization

2011-05-16 Thread Marcus Cobden
On 16/05/2011 19:11, Bob Proulx wrote: Everything seems equivalent. With option b much prettier I vote for the option b suggestion from Marcus. Thanks Marcus for jumping in with that suggestion! Bob No problem :) I've learned a lot about the find utility from this bug report, and what we've

Bug#626640: [php-maint] Bug#626640: Small optimization

2011-05-16 Thread Bob Proulx
Ondřej Surý wrote: > Marcus Cobden wrote: > > Here's (what I hope is) a small optimisation to Bob's solution. > > Hmm, that looks like a nice optimization. Bob, what do you think? Two ways of doing this under discussion: a) -execdir sh -c 'test -z "$(fuser "$0")"' {} \; b) ! -execdir fus

Bug#626640: [php-maint] Bug#626640: Small optimization

2011-05-16 Thread Ondřej Surý
Hmm, that looks like a nice optimization. Bob, what do you think? -s (suppresses the output of fuser) O. On Mon, May 16, 2011 at 15:52, Marcus Cobden wrote: > Here's (what I hope is) a small optimisation to Bob's solution. > > * fuser returns non-zero if the files aren't in use > * since we onl

Bug#626640: Small optimization

2011-05-16 Thread Marcus Cobden
Here's (what I hope is) a small optimisation to Bob's solution. * fuser returns non-zero if the files aren't in use * since we only need the argument once, we probably don't need a shell Can you guys check this over for me? find /var/lib/php5/ -depth -mindepth 1 -maxdepth 1 -type f \ -c