测试文件
#!/bin/bash set -e trap 'echo $LINENO' EXIT /bin/false
跑步
$ ./test.sh 1
我怎样才能得到“/bin/false”的实际行号而不是总是“1”?
bash shell bash-trap
bash ×1
bash-trap ×1
shell ×1