Why does local out=$(cmd) hide the command's exit status?
In a Bash function, I noticed that local out=$(false) reports success, but declaring out first and then assigning out=$(false) reports failure. Why are they different, and what's a…
In a Bash function, I noticed that local out=$(false) reports success, but declaring out first and then assigning out=$(false) reports failure. Why are they different, and what's a…