Skip to content
  • DBA Dev Ops

  • Home
  • About
  • Achievements
  • Stupid Bash Tricks
  • Presentations

Month

July 2015

Bash

Bash return code fun

Why local=$(exit 1) will always exit 0

So a few things with return codes mess up beginning bash programmers

  1. Creating variables always returns 0
  2. Return codes are a single byte int

Let me provide a few examples: Continue “Bash return code fun”

July 31, 2015March 19, 2016
basherror codesLinuxreturn code