diff options
author | 2006-06-13 02:48:54 +1000 | |
---|---|---|
committer | 2006-06-13 02:48:54 +1000 | |
commit | f46145a6b3f3bbab9328280cb1a6310d85f866c4 (patch) | |
tree | 4e3650d29e22e9e7c4111c2d43fcfcb289f4b68e /builtin.c | |
parent | c61f6ceea669cccd760390fa80e6a1591a66b307 (diff) |
Do not change status when the 'return' builtin is called with no argument
darcs-hash:20060612164854-ac50b-5f428c819e8dafb44b591150d1965c5158854781.gz
Diffstat (limited to 'builtin.c')
-rw-r--r-- | builtin.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2623,7 +2623,7 @@ static int builtin_break_continue( wchar_t **argv ) static int builtin_return( wchar_t **argv ) { int argc = builtin_count_args( argv ); - int status = 0; + int status = proc_get_last_status(); block_t *b = current_block; |