Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Testing behavior of set -e with functions and exit hooks
#!/bin/bash # GNU bash, version 4.3.46 set -ex onExit() { exitCode=$? echo "${FUNCNAME[0]}: $exitCode" } trap "onExit" EXIT foo() { echo ${FUNCNAME[0]} return 0 } tf() { echo ${FUNCNAME[0]} foo } [[ "${1}" != "--noexec" ]] && tf echo "still here!"
run
|
edit
|
history
|
help
0
Matrix addition, subtraction and multiplication
180420107522
learning bash 101
prog1
Delta_checker_1
Teaspeak_installer.sh
escribir_en_la_memoria.sh
V
init
If.sh