mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-21 03:21:16 -03:00
Do not change status when the 'exit' builtin is called with no argument
darcs-hash:20060612165137-ac50b-0281941e35c5f8b619460f67d24a89caec475815.gz
This commit is contained in:
@@ -1903,6 +1903,7 @@ static int builtin_exit( wchar_t **argv )
|
|||||||
{
|
{
|
||||||
case 1:
|
case 1:
|
||||||
{
|
{
|
||||||
|
ec = proc_get_last_status();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
The <tt>exit</tt> builtin causes fish to exit. If <tt>STATUS</tt> is
|
The <tt>exit</tt> builtin causes fish to exit. If <tt>STATUS</tt> is
|
||||||
supplied, it will be converted to an integer and used as the exit
|
supplied, it will be converted to an integer and used as the exit
|
||||||
code. Otherwise the exit code will be 0.
|
code. Otherwise the exit code will be that of the last command executed.
|
||||||
|
|
||||||
If exit is called while sourcing a file (using the <a
|
If exit is called while sourcing a file (using the <a
|
||||||
href="#source">.</a> builtin) the rest of the file will be skipped,
|
href="#source">.</a> builtin) the rest of the file will be skipped,
|
||||||
|
|||||||
Reference in New Issue
Block a user