mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-08-30 17:33:50 +08:00
trap: simplify example and add example (#15683)
This commit is contained in:
+5
-1
@@ -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}}`
|
||||
|
||||
Reference in New Issue
Block a user