Skip to content

Commit e61e753

Browse files
committed
Add $status to the man page.
1 parent 2c31755 commit e61e753

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

doc/es.1

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -934,7 +934,7 @@ The return value of a command is obtained with the construct
934934
.De
935935
.PP
936936
The return value of an external program is its exit status
937-
(which in other shells can be found in special variables such as
937+
(which in other shells must be determined from special variables such as
938938
.Cr $?
939939
or
940940
.Cr $status ),
@@ -962,6 +962,11 @@ If any element of a list is not equal to
962962
(or the empty string), that list is considered false.
963963
.PP
964964
The return value of an assignment operation is the assigned value.
965+
.PP
966+
The default interactive loop makes the return value of the previous command
967+
available via the
968+
.Cr $status
969+
variable.
965970
.SS "Logical Operators"
966971
There are a number of operators in
967972
.I es

0 commit comments

Comments
 (0)