Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F162634759
D55026.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
652 B
Referenced Files
None
Subscribers
None
D55026.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D55026: sh.1: Document exit status of the function return command
Attached
Detach File
Event Timeline
Log In to Comment