On 4/24/19 8:47 AM, Ian Neal wrote: > At what point is a subshell being invoked? There's no pipeline, command > substitution, coprocess, background process, or explicit () subshell here, > which are the only cases a subshell should be created. Otherwise, the > entire operation should be evaluated by the main shell. Arithmetic > expansion is not in that list.
Why would you think that /bin/true would be "evaluated by the main shell?" It's not a shell compound command or a builtin, and non-builtin commands are run in child processes. -- ``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/