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
baitaptrenlop
learning bash 101
How do I view all available HDD's/partitions?
asdf
Delta_checker_1
Functions and variables
multi
Example
curl test
gsup awk