On Mon, 23 May 2022 23:04:07 -0700, Philip Guenther wrote: > To be clear, this is _not_ a POSIX conformance issue and when multiple > possible error conditions occcur, as happens here, the exact error > returned is unspecified by POSIX: XSH 2.3p4 > If more than one error occurs in processing a function call, any one > of the possible errors may be returned, as the order of detection is > undefined.
Right, callers need to be able to handle any of the potential error codes. I think adjusting the regress test in this case is fine. - todd