On 6/22/10 3:10 PM, Andres P wrote: >> The exit status of the command substitution will ultimately be ignored >> because it's part of an assignment statement on the LHS of a || list, so >> the commands run in the command substitution inherit that state. >> > > Thanks, this behaviour seemed strange to me. > > Although eventually the outer `||' list taking precedence over contained > subshells will seem natural in my use cases. It's more consistent.
Actually, the command substitution case was always the oddball. Explicit subshells using (...), for instance, always behaved this way. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, ITS, CWRU c...@case.edu http://cnswww.cns.cwru.edu/~chet/