tech-userlevel archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: find and limits
On Thu, Apr 04, 2019 at 10:12:35AM +0000, coypu%sdf.org@localhost wrote:
> wanting to write a portable version, I have to limit myself to what
> POSIX find and POSIX xargs support, which isn't much :-/
> I got this in the end:
>
> ${FIND} ${WRKSRC} -iname '*.ttf' -print | \
> ${XARGS} -I % ${INSTALL_DATA} % ${DESTDIR}${TTF_FONTS_DIR}
>
> Can we do something about this so find .. -exec is usable in more cases? :-)
You found the correct solution, and expaning the maximum command line length
only moves the point of failure (instead of preventing the failure).
Martin
Home |
Main Index |
Thread Index |
Old Index