mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-23 20:33:44 +08:00
Drop validation of function code on new function definition - the code has already been validated
darcs-hash:20060602021757-ac50b-02bad63baf4826801ec0433468ec78d9b4a4c0f7.gz
This commit is contained in:
parent
a1a2773cbf
commit
6fada015b6
15
builtin.c
15
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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user