Fix bug in read builtin - signal handlers where not correctly set, causiong ^C not to work

darcs-hash:20070201002053-ac50b-b73e22cbeecaeb364974cd2c512efbd517bb90d3.gz
This commit is contained in:
axel 2007-02-01 10:20:53 +10:00
parent 15e0a44fc7
commit 766482d90e

View file

@ -1716,7 +1716,9 @@ static int builtin_read( wchar_t **argv )
}
reader_set_buffer( commandline, wcslen( commandline ) );
proc_push_interactive( 1 );
line = reader_readline( );
proc_pop_interactive();
if( line )
{
buff = wcsdup( line );