Always init history on startup, to avoid destorying history multiple times when reading interactively in a non-interactive script

darcs-hash:20060419095502-ac50b-abf2fe39cf9c027bdbc69d78fe858e946f7c81f2.gz
This commit is contained in:
axel
2006-04-19 19:55:02 +10:00
parent 45d56d8e05
commit 6996c7718e
2 changed files with 2 additions and 2 deletions

2
main.c
View File

@@ -266,6 +266,7 @@ int main( int argc, char **argv )
env_init();
complete_init();
reader_init();
history_init();
if( read_init() )
{
@@ -337,6 +338,7 @@ int main( int argc, char **argv )
proc_fire_event( L"PROCESS_EXIT", EVENT_EXIT, getpid(), res );
history_destroy();
complete_destroy();
proc_destroy();
env_destroy();