Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Checking set -e behavior in functions
#!/bin/bash # GNU bash, version 4.3.46 set -ex trap "echo exit with $?" EXIT foo() { echo ${FUNCNAME[0]} return 1 } tf() { echo ${FUNCNAME[0]} foo } [[ "${1}" -eq "-noexec" ]] && true || tf echo "still here with $? "
run
|
edit
|
history
|
help
0
leer_de_la_memoria.sh
reverse pyramid
file1
test
1111
a
dico.txt
a
fo
V