1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-23 00:35:33 +02:00

trap: simplify example and add example (#15683)

This commit is contained in:
Managor 2025-02-06 19:08:56 +02:00 committed by GitHub
parent 1da2707ec9
commit c3b82e778c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -9,7 +9,7 @@
- List the commands and the names of the expected events:
`trap -p`
`trap`
- Execute a command when a signal is received:
@ -18,3 +18,7 @@
- Remove commands:
`trap - {{SIGHUP}} {{SIGINT}}`
- Ignore a signal:
`trap '' {{SIGINT}}`