Skip to content

Instantly share code, notes, and snippets.

@kwannoel
Created July 25, 2023 06:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kwannoel/fc47340601c434e13a89dfc0d93eca57 to your computer and use it in GitHub Desktop.
Save kwannoel/fc47340601c434e13a89dfc0d93eca57 to your computer and use it in GitHub Desktop.
`./and-hides-errors.sh` then `echo $?` it should be 0.
#!/usr/bin/env bash
set -euo pipefail
throw_error() {
cat ahjwkbhw
}
throw_error && echo "1"
echo "hello world"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment