On 12/21/23 13:46, Alan Coopersmith wrote:
On Solaris 11.4, /bin/sh is currently a somewhat modified ksh93u+ -
we're working to resync with the new community upstream still.

In that shell, when I run:
   printf "test" </dev/null >/dev/full
it prints nothing and $? is set to 0.

The same happens with /usr/bin/printf instead of the shell builtin.

The engineer working to resync our ksh93 with the latest upstream code from
https://github.com/ksh93/ksh has confirmed this is already fixed upstream
for the ksh builtin.  From a quick look, this appears to be thanks to
https://github.com/ksh93/ksh/commit/93e15a303585df3ecf8184818f2d5ff569ff2ba1
but https://github.com/ksh93/ksh/issues/313 notes that work remains for
other builtins.

--
        -Alan Coopersmith-                 alan.coopersm...@oracle.com
         Oracle Solaris Engineering - https://blogs.oracle.com/solaris


Reply via email to