Bash Scripting - Error Handling
What is wrong with this bash script snippet that attempts to trap the EXIT signal?
cleanup() {
echo "Performing cleanup"
}
trap cleanup EXIT
cleanup() {
echo "Performing cleanup"
}
trap cleanup EXIT
15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions