On 2/14/21 4:03 AM, Stephane Chazelas wrote:
2021-02-09 10:23:51 -0500, Chet Ramey:
[...]
It's the assignment statement that's the oddball here; it's the only place
where the exit status from a command substitution has any effect. This is a
POSIX (maybe ksh) invention to provide assignment statements with a useful
exit status.
[...]
It was already like that in the Bourne shell, the shell that
introduced command substitution in the late 70s.
It appears so, albeit undocumented.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU c...@case.edu http://tiswww.cwru.edu/~chet/