List Question
20 TechQA 2023-07-28T10:34:34.327000Why is the exit code always 0 inside handle_exit and how to distinguish error from success?
91 views
Asked by PirateApp
How to trap on exit 1 only in bash
2.1k views
Asked by Simon Ernesto Cardenas Zarate
How can we get back in the right place (that we specify) after signal?
56 views
Asked by CheeseMan
redirecting stderr to err function
137 views
Asked by mikee
How to run a closing script when issuing docker-compose stop or crtl-c
436 views
Asked by alanwilter
Run a cleanup script when stopping a Docker container
582 views
Asked by Standard
In bash shell -E option explanation, what does "any trap inherited by a subshell environment" mean?
973 views
Asked by Chan Kim
Trap Command not detecting terminal resize (SIGWINCH)
738 views
Asked by Quantum
Why is trap in bash throwing an error when empty variable is assigned
295 views
Asked by pieterjanvc
Bash: Get message from error that was just trapped
162 views
Asked by vastlysuperiorman
Trap signal SIGXFSZ not working when using ulimit -f
210 views
Asked by Noam perel
Trap bash errors from child script
870 views
Asked by Vivek Maran
bash trap ctrl c and continue to next function
91 views
Asked by Anubhav
Capture the error stream of a line of code and report it with trap while keeping the stdout untouched
223 views
Asked by pieterjanvc
bash trap EXIT $LINENO always 1
1k views
Asked by Darren Ng
Trap signals both in script and subshells
702 views
Asked by Teodoro
How can we prevent CTRL-C from screen terminating?
677 views
Asked by Phindau
In a bash read loop, processing ! (exclamation) and trapping CTRL-Z
118 views
Asked by Prasun Dewan
Is it possible to use Bash history expansion inside the trap command?
59 views
Asked by Davi