Fix read in noninteractive mode problems reported by James Reeves

darcs-hash:20090222162206-ac50b-c293945986f75103120606a64133b59fe82c02a6.gz
This commit is contained in:
axel 2009-02-23 02:22:06 +10:00
parent f5be301a2f
commit 810262118a

View file

@ -2158,6 +2158,8 @@ static int builtin_read( wchar_t **argv )
reader_set_buffer( commandline, wcslen( commandline ) ); reader_set_buffer( commandline, wcslen( commandline ) );
proc_push_interactive( 1 ); proc_push_interactive( 1 );
event_fire_generic(L"fish_prompt");
line = reader_readline( ); line = reader_readline( );
proc_pop_interactive(); proc_pop_interactive();
if( line ) if( line )