Skip to content

Instantly share code, notes, and snippets.

@jan-matejka
Created July 11, 2013 17:15
Show Gist options
  • Select an option

  • Save jan-matejka/5977345 to your computer and use it in GitHub Desktop.

Select an option

Save jan-matejka/5977345 to your computer and use it in GitHub Desktop.
this is wrong
#! /bin/sh
set -eu
test_1() {
main() {
echo "1A"
false
echo "1B"
}
main && echo "PASSED" || echo "FAILED"
}
test_2() {
main() {
echo "2A"
false
echo "2B"
}
main
}
test_1
test_2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment