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:
parent
1da2707ec9
commit
c3b82e778c
1 changed files with 5 additions and 1 deletions
|
@ -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}}`
|
||||
|
|
Loading…
Add table
Reference in a new issue