Tagged Questions
3
votes
2answers
2k views
How can I trap a program that returns 139 (segmentation fault) in bash?
I have a bash script that tests some programs and one of the program returns Segmentation fault so I tried to add a trap in the head of my script:
trap "echo 'segfault occured!'" SIGSEGV
That ...