mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-24 09:55:25 +02:00
trap: remove redundand example and add tokens
This commit is contained in:
parent
ba8b10a254
commit
f83faa3a3a
1 changed files with 2 additions and 6 deletions
|
@ -13,12 +13,8 @@
|
|||
|
||||
- Set a trap to execute commands when one or more signals are detected:
|
||||
|
||||
`trap 'echo "Caught signal SIGHUP"' SIGHUP`
|
||||
`trap 'echo "Caught signal {{SIGHUP}}"' {{SIGHUP}}`
|
||||
|
||||
- Remove active traps:
|
||||
|
||||
`trap - SIGHUP SIGINT`
|
||||
|
||||
- Set a trap to delete a file after the user has interrupted a download:
|
||||
|
||||
`trap 'rm -i master.zip' SIGINT ERR`
|
||||
`trap - {{SIGHUP}} {{SIGINT}}`
|
||||
|
|
Loading…
Add table
Reference in a new issue