> From: yyy@xxxxxxxxxxx (Geoff Clare)
>
> I know of two existing solutions to the problem.
BSD systems have another approach. The -X option to find:
-X The -X option is a modification to permit find to be safely
used in conjunction with xargs(1). If a file name contains
any of the delimiting characters used by xargs, a diagnostic
message is displayed on standard error, and the file is
skipped. The delimiting characters include single and double
quotes, backslash, space, tab and newline characters.
I don't see any problems with the GNU extension.
The extension to find to do argument aggregation internally isn't
sufficient -- if the target command does metacharacter expansion,
you can still lose badly.
Regards,
--keith
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Keith Bostic
Sleepycat Software Inc. yyyyyy@xxxxxxxxxxxxx
118 Tower Rd. +1-781-259-3139
Lincoln, MA 01773 http://www.sleepycat.com
|