On 7/25/19 6:28 PM, 積丹尼 Dan Jacobson wrote:
> "Warning: whatever you feed in will become one argument glued together."
IMO that doesn't sound too far away from what is currently in the manpage:
"[...]
Also, unquoted blanks do not terminate input items;
instead the separator is the newlin
On 7/24/19 11:28 PM, Eric Blake wrote:
> Looks reasonable to me (other than line wrapping).
Thanks, attached as patch with a test case, NEWS entry, etc.
Comments?
Have a nice day,
Berny
From eeefd1dc72102c5d8c70912be943a71a0fb153aa Mon Sep 17 00:00:00 2001
From: Bernhard Voelker
Date: Sun, 28 Ju
OK. Making it smarter for the special case would make it less efficient
for the general case.
積丹尼 Dan Jacobson writes:
> All I know is you need to document "in this case, find, for some reason,
> needs to needlessly check the directory is still there after the command
> it invokes exits, therefore one needs to add -depth" (I don't recall
> Unix find(1) had such weird habits.)
>
> Anyway, t
BV> find does not have an idea what rmdir does, and that its logic requires
BV> depth-first search. Use -depth:
All I know is you need to document "in this case, find, for some reason,
needs to needlessly check the directory is still there after the command
it invokes exits, therefore one needs t
On 2019-07-28 積丹尼 Dan Jacobson 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 -typ
On 7/28/19 11:37 AM, 積丹尼 Dan Jacobson 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/nn
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.")