On 2023-12-21 19:34, Paul Eggert wrote: > ulimit -f 0 > trap "" XFSZ > printf "test" >test || echo failed with status $? > > which issues the following diagnostics on Solaris 10 /bin/sh: > > printf: write error: File too large > failed with status 1
I think you might want to double check your test setup. This error message is exactly what you'd get if you are running printf from a recent release of GNU coreutils, rather than the /usr/bin/printf that comes with Solaris. I don't have a Solaris 10 box handy for testing right now but neither Solaris 8 /usr/bin/printf nor heirloom-tools printf (which is ported from OpenSolaris, contemporaneous with Solaris 10) print this error message, and neither exit with status 1. Cheers, Nick