1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-08-04 16:55:34 +02:00

trap: remove redundand example and add tokens

This commit is contained in:
fuerbringer 2018-02-04 12:22:24 +01:00 committed by Max Xu
parent ba8b10a254
commit f83faa3a3a

View file

@ -13,12 +13,8 @@
- Set a trap to execute commands when one or more signals are detected: - 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: - Remove active traps:
`trap - SIGHUP SIGINT` `trap - {{SIGHUP}} {{SIGINT}}`
- Set a trap to delete a file after the user has interrupted a download:
`trap 'rm -i master.zip' SIGINT ERR`