From f83faa3a3a5b90c91c7252267d739f82d8904a81 Mon Sep 17 00:00:00 2001 From: fuerbringer Date: Sun, 4 Feb 2018 12:22:24 +0100 Subject: [PATCH] trap: remove redundand example and add tokens --- pages/linux/trap.md | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/pages/linux/trap.md b/pages/linux/trap.md index a884a84742..325b1c1230 100644 --- a/pages/linux/trap.md +++ b/pages/linux/trap.md @@ -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}}`