summaryrefslogtreecommitdiffstats
path: root/bin/sh/sh.1
diff options
context:
space:
mode:
Diffstat (limited to 'bin/sh/sh.1')
-rw-r--r--bin/sh/sh.14
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/sh/sh.1 b/bin/sh/sh.1
index 75d243c..10cd607 100644
--- a/bin/sh/sh.1
+++ b/bin/sh/sh.1
@@ -861,6 +861,10 @@ described later),
separated by
.Dq Li \&|
characters.
+The exit code of the
+.Ic case
+command is the exit code of the last command executed in the list or
+zero if no patterns were matched.
.Ss Grouping Commands Together
Commands may be grouped by writing either
.Bd -literal -offset indent
OpenPOWER on IntegriCloud