Timeline for An atexit for Bash
Current License: CC BY-SA 3.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 17, 2022 at 9:23 | comment | added | tom |
Nice idea. You should use quotes in case the trap commands contain special characters: eval "set -- $(trap -p EXIT)" . (Aside: trap -p <sigspec> is specific to bash. POSIX only specifies a way to display all the traps, by running trap with no arguments.)
|
|
Nov 27, 2018 at 15:10 | comment | added | Toby Speight | You have presented an alternative solution, but haven't reviewed the code. Please edit to show what aspects of the question code prompted you to write this version, and in what ways it's an improvement over the original. It may be worth (re-)reading How to Answer. | |
Aug 29, 2016 at 17:47 | history | edited | William Pursell | CC BY-SA 3.0 |
added 219 characters in body
|
Aug 29, 2016 at 17:23 | history | answered | William Pursell | CC BY-SA 3.0 |