Clarify docs on $status with and/or/begin/end

See #4311.
This commit is contained in:
Fabian Homborg
2017-08-11 15:05:28 +02:00
parent e27855b225
commit 4dbb274d8a
4 changed files with 4 additions and 4 deletions

View File

@@ -13,7 +13,7 @@ The block is unconditionally executed. `begin; ...; end` is equivalent to `if tr
`begin` is used to group a number of commands into a block. This allows the introduction of a new variable scope, redirection of the input or output of a set of commands as a group, or to specify precedence when using the conditional commands like `and`.
`begin` does not change the current exit status.
`begin` does not change the current exit status itself. After the block has completed, `$status` will be set to the status returned by the most recent command.
\subsection begin-example Example