diff --git a/builtins/set.def b/builtins/set.def index c4a7001..0b22b4a 100644 --- a/builtins/set.def +++ b/builtins/set.def @@ -704,6 +704,12 @@ set_builtin (list) return (EXECUTION_FAILURE); } opts_changed = 1; + if(flag_name == 'i' && on_or_off == '-') + { + init_interactive(); + /*if(check_window_size)*/ + get_new_window_size (0, (int *)0, (int *)0); + } } } else diff --git a/shell.c b/shell.c index 2fd8179..038d27c 100644 --- a/shell.c +++ b/shell.c @@ -320,7 +320,7 @@ static int run_wordexp __P((char *)); static int uidget __P((void)); -static void init_interactive __P((void)); +void init_interactive __P((void)); static void init_noninteractive __P((void)); static void init_interactive_script __P((void)); @@ -1635,7 +1635,7 @@ set_shell_name (argv0) shell_name = PROGRAM; } -static void +void init_interactive () { expand_aliases = interactive_shell = startup_state = 1;