File
#!/bin/bash
source ../base/backtrace.sh
function doomed_to_fail() {
touch /root/test
}
doomed_to_fail
Output
touch: cannot touch '/root/test': Permission denied
Traceback (most recent call last):
File "./test.sh", line 9, in main
doomed_to_fail
File "./test.sh", line 6, in doomed_to_fail
touch /root/test
Exiting with status 1
Traceback (most recent call last):
File "./test.sh", line 9, in main
doomed_to_fail
Exiting with status 1