On 2023-12-21 19:56, Nick Bowler wrote:
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.
Oh, you're right. I put /opt/sfw/bin early in my PATH.
/opt/sfw/bin/printf is part of Solaris (it's in the SFWcoreu package)
but it is optional and obviously not everybody puts it early.
With PATH='/usr/bin' I get the broken (non-POSIX) behavior.