mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-12 07:57:22 +00:00
Fix read in noninteractive mode problems reported by James Reeves
darcs-hash:20090222162206-ac50b-c293945986f75103120606a64133b59fe82c02a6.gz
This commit is contained in:
parent
f5be301a2f
commit
810262118a
1 changed files with 2 additions and 0 deletions
|
@ -2158,6 +2158,8 @@ static int builtin_read( wchar_t **argv )
|
|||
|
||||
reader_set_buffer( commandline, wcslen( commandline ) );
|
||||
proc_push_interactive( 1 );
|
||||
|
||||
event_fire_generic(L"fish_prompt");
|
||||
line = reader_readline( );
|
||||
proc_pop_interactive();
|
||||
if( line )
|
||||
|
|
Loading…
Reference in a new issue