![Malwrologist on Twitter: "#linux In #bash, one can use #trap command to run command when a command exits with an error (with a non-zero exit code) trap <action>, ERR trap 'echo time Malwrologist on Twitter: "#linux In #bash, one can use #trap command to run command when a command exits with an error (with a non-zero exit code) trap <action>, ERR trap 'echo time](https://pbs.twimg.com/media/DvU1Fb4X4AAlklR.jpg)
Malwrologist on Twitter: "#linux In #bash, one can use #trap command to run command when a command exits with an error (with a non-zero exit code) trap <action>, ERR trap 'echo time
![How to modify scripts behavior on signals using bash traps - Linux Tutorials - Learn Linux Configuration How to modify scripts behavior on signals using bash traps - Linux Tutorials - Learn Linux Configuration](https://linuxconfig.org/wp-content/uploads/2017/10/bash_logo.png)
How to modify scripts behavior on signals using bash traps - Linux Tutorials - Learn Linux Configuration
Skylanders Trap Team Head Bash Stock Photo - Download Image Now - 360-Degree View, Activision, Arts Culture and Entertainment - iStock
![๐Julia Evans๐ on Twitter: "TIL that you can use the "DEBUG" trap to step through a bash script line by line https://t.co/JBckrcr06G" / Twitter ๐Julia Evans๐ on Twitter: "TIL that you can use the "DEBUG" trap to step through a bash script line by line https://t.co/JBckrcr06G" / Twitter](https://pbs.twimg.com/media/EjagqI6XsAAPIQe.png)