Bash return code fun
Why local=$(exit 1) will always exit 0
So a few things with return codes mess up beginning bash programmers
- Creating variables always returns 0
- Return codes are a single byte int
Let me provide a few examples: Continue “Bash return code fun”