Page MenuHomeFreeBSD

D55026.diff
No OneTemporary

D55026.diff

diff --git a/bin/sh/sh.1 b/bin/sh/sh.1
--- a/bin/sh/sh.1
+++ b/bin/sh/sh.1
@@ -41,7 +41,7 @@
.\" the referee document. The original Standard can be obtained online at
.\" http://www.opengroup.org/unix/online.html.
.\"
-.Dd February 3, 2026
+.Dd February 9, 2026
.Dt SH 1
.Os
.Sh NAME
@@ -1223,6 +1223,10 @@
nested function or sourced script;
if no function or sourced script is being executed,
it exits the shell instance.
+If
+.Ar exitstatus
+is specified, the exit status is set to its value,
+otherwise it is set to the exit status of the last executed command.
The
.Ic return
command is implemented as a special built-in command.

File Metadata

Mime Type
text/plain
Expires
Thu, Jul 16, 7:05 AM (15 h, 14 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35128339
Default Alt Text
D55026.diff (652 B)

Event Timeline