mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-17 08:52:46 +08:00
The begin builtin should not alter the exit status
darcs-hash:20060712173141-ac50b-8d21f9f22ef55581521ccf923411e3458bd8109c.gz
This commit is contained in:
parent
9e304fa734
commit
036cc4e0fa
|
@ -2476,7 +2476,7 @@ static int builtin_begin( wchar_t **argv )
|
|||
{
|
||||
parser_push_block( BEGIN );
|
||||
current_block->tok_pos = parser_get_pos();
|
||||
return 0;
|
||||
return proc_get_last_status();
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -13,6 +13,8 @@ into a block. The reason for this is usually either to introduce a new
|
|||
variable scope or to redirect the input to output of this set of
|
||||
commands as a group.
|
||||
|
||||
The \c begin command does not change the current exit status.
|
||||
|
||||
\subsection begin-example Example
|
||||
|
||||
The following code sets a number of variables inside of a block
|
||||
|
|
|
@ -13,4 +13,4 @@ begin; [COMMANDS...] end
|
|||
documentation for the block constructs, such as \c if, \c for and \
|
||||
while.
|
||||
|
||||
The end command does not change the current exit status.
|
||||
The \c end command does not change the current exit status.
|
||||
|
|
Loading…
Reference in New Issue
Block a user