Skip to content

Instantly share code, notes, and snippets.

@evrardjp
Created April 10, 2019 14:33
Show Gist options
  • Select an option

  • Save evrardjp/682a4f07ea79fcee6adba1097253470f to your computer and use it in GitHub Desktop.

Select an option

Save evrardjp/682a4f07ea79fcee6adba1097253470f to your computer and use it in GitHub Desktop.
cat test.sh
#!/bin/bash
set -e
VAR="aa"
echo ${VAR} ${VAR2+x}
./test.sh; echo $?
0
cat test2.sh
#!/bin/bash
set -e
VAR="aa"
echo ${VAR} ${VAR2}
./test2.sh; echo $?
130
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment