diff options
author | 2006-06-02 12:17:57 +1000 | |
---|---|---|
committer | 2006-06-02 12:17:57 +1000 | |
commit | 6fada015b6cc37225c79720a47b944216ccf427b (patch) | |
tree | d72a0b7ad94f4b0fa039aaa37a6e29126ffeb42f /builtin.c | |
parent | a1a2773cbff6a124058d8cb7f2ff36376ecf7f64 (diff) |
Drop validation of function code on new function definition - the code has already been validated
darcs-hash:20060602021757-ac50b-02bad63baf4826801ec0433468ec78d9b4a4c0f7.gz
Diffstat (limited to 'builtin.c')
-rw-r--r-- | builtin.c | 15 |
1 files changed, 5 insertions, 10 deletions
@@ -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); } |