On Thu, Apr 04, 2019 at 10:12:35AM +0000, co...@sdf.org 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