Exit code of command substitution in bash local variable assignment [duplicate] Exit code of command substitution in bash local variable assignment [duplicate] bash bash