|
From: | Chet Ramey |
Subject: | Re: export loses error |
Date: | Mon, 15 Feb 2021 09:16:22 -0500 |
User-agent: | Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 |
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 chet@case.edu http://tiswww.cwru.edu/~chet/
[Prev in Thread] | Current Thread | [Next in Thread] |