From 827c88e4a1ca2827d0c3f135e4ba1cd8b688ca80 Mon Sep 17 00:00:00 2001 From: axel Date: Fri, 1 Sep 2006 06:53:20 +1000 Subject: [PATCH] Fix bug where using the return builtin inside an if-block could cause the else-block to get executed darcs-hash:20060831205320-ac50b-64ecbaa3ed5e32c1a815ba384a6831a8fd5e1b47.gz --- builtin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builtin.c b/builtin.c index 59a4430d6..6fd22e551 100644 --- a/builtin.c +++ b/builtin.c @@ -2743,11 +2743,11 @@ static int builtin_return( wchar_t **argv ) b = current_block; while( ( b->type != FUNCTION_CALL)) { + b->type = FAKE; b->skip=1; b = b->outer; } b->skip=1; -// proc_set_last_status( status ); return status; }