summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorjdp <jdp@FreeBSD.org>1997-11-12 04:32:50 +0000
committerjdp <jdp@FreeBSD.org>1997-11-12 04:32:50 +0000
commit33bb94d3058a3608b85a58cff259dd47456c3328 (patch)
tree154c58a41d9e124917a2c15d5ac0e2efc5982fbf /bin
parentdd8043bfaa6a9f3f0d452c2675ef66eb632ab69d (diff)
downloadFreeBSD-src-33bb94d3058a3608b85a58cff259dd47456c3328.zip
FreeBSD-src-33bb94d3058a3608b85a58cff259dd47456c3328.tar.gz
Document the exit status for a command that was terminated by a
signal.
Diffstat (limited to 'bin')
-rw-r--r--bin/sh/sh.16
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/sh/sh.1 b/bin/sh/sh.1
index 4ac5ea2..6447826 100644
--- a/bin/sh/sh.1
+++ b/bin/sh/sh.1
@@ -33,7 +33,7 @@
.\" SUCH DAMAGE.
.\"
.\" from: @(#)sh.1 8.6 (Berkeley) 5/4/95
-.\" $Id: sh.1,v 1.15 1997/09/13 17:40:00 wosch Exp $
+.\" $Id: sh.1,v 1.16 1997/09/29 15:15:16 msmith Exp $
.\"
.Dd May 5, 1995
.Dt SH 1
@@ -453,6 +453,10 @@ error, or a false indication. The man page for each command
should indicate the various exit codes and what they mean.
Additionally, the builtin commands return exit codes, as does
an executed shell function.
+.Pp
+If a command is terminated by a signal, its exit status is 128 plus
+the signal number. Signal numbers are defined in the header file
+.Aq Pa sys/signal.h .
.Ss Complex Commands
Complex commands are combinations of simple commands
with control operators or reserved words, together creating a larger complex
OpenPOWER on IntegriCloud