2 ms·
>I know $() invokes a subshell, but does () ? >My guess was that the () affects the order of operations between ; and &&, so the first line is three commands,
by asicsp 6y ago
>I know $() invokes a subshell, but does () ?
>My guess was that the () affects the order of operations between ; and &&, so the first line is three commands, while the second line is two.
Emphasis mine. My understanding was that the question is simply about whether () invokes a subshell or not (irrespective of set -e)