> If you want to do this in a portable way, learn to use `xargs` or `find`.
xargs and find are a hack here, because it will start the target program multiple times. They only work if CMD FILE1 FILE2 has the same meaning as CMD FILE1; CMD FILE2.
The fix with the stack limit is also a hack. What other system requires you to specify a hard limit, these days?