From 6fada015b6cc37225c79720a47b944216ccf427b Mon Sep 17 00:00:00 2001 From: axel Date: Fri, 2 Jun 2006 12:17:57 +1000 Subject: [PATCH] Drop validation of function code on new function definition - the code has already been validated darcs-hash:20060602021757-ac50b-02bad63baf4826801ec0433468ec78d9b4a4c0f7.gz --- builtin.c | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/builtin.c b/builtin.c index 292e3fd9f..74eb3f2aa 100644 --- a/builtin.c +++ b/builtin.c @@ -2500,16 +2500,11 @@ static int builtin_end( wchar_t **argv ) wchar_t *def = wcsndup( parser_get_buffer()+current_block->tok_pos, parser_get_job_pos()-current_block->tok_pos ); - //fwprintf( stderr, L"Function: %ls\n", def ); - - if( !is_interactive || !parser_test( def, sb_err, argv[0] ) ) - { - function_add( current_block->param1.function_name, - def, - current_block->param2.function_description, - current_block->param4.function_events, - current_block->param3.function_is_binding ); - } + function_add( current_block->param1.function_name, + def, + current_block->param2.function_description, + current_block->param4.function_events, + current_block->param3.function_is_binding ); free(def); }