Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/bin/sh Note the meaning of 'trap 0' (execute on exit from sh...
details: https://anonhg.NetBSD.org/src/rev/ed2b1c359da1
branches: trunk
changeset: 494927:ed2b1c359da1
user: jhawk <jhawk%NetBSD.org@localhost>
date: Mon Jul 17 21:18:47 2000 +0000
description:
Note the meaning of 'trap 0' (execute on exit from shell)
diffstat:
bin/sh/sh.1 | 13 ++++++++++---
1 files changed, 10 insertions(+), 3 deletions(-)
diffs (30 lines):
diff -r dfd3e7341cbb -r ed2b1c359da1 bin/sh/sh.1
--- a/bin/sh/sh.1 Mon Jul 17 19:57:49 2000 +0000
+++ b/bin/sh/sh.1 Mon Jul 17 21:18:47 2000 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: sh.1,v 1.33 1999/11/16 22:03:25 hubertf Exp $
+.\" $NetBSD: sh.1,v 1.34 2000/07/17 21:18:47 jhawk Exp $
.\" Copyright (c) 1991, 1993
.\" The Regents of the University of California. All rights reserved.
.\"
@@ -1329,11 +1329,18 @@
.Ar signal...
.Xc
Cause the shell to parse and execute action when any of the specified
-signals are received. The signals are specified by signal number. Action
+signals are received. The signals are specified by signal number. If
+.Ar signal
+is
+.Li 0 ,
+the action is executed when the shell exits.
+.Ar action
may be null or omitted; the former causes the specified signal to be
ignored and the latter causes the default action to be taken. When the
shell forks off a subshell, it resets trapped (but not ignored) signals to
-the default action. The trap command has no effect on signals that were
+the default action. The
+.Ic trap
+command has no effect on signals that were
ignored on entry to the shell.
.It type Op Ar name ...
Interpret each name as a command and print the resolution of the command
Home |
Main Index |
Thread Index |
Old Index