aboutsummaryrefslogtreecommitdiff
path: root/lash.c
diff options
context:
space:
mode:
Diffstat (limited to 'lash.c')
-rw-r--r--lash.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/lash.c b/lash.c
index 7c932a910..8f8609534 100644
--- a/lash.c
+++ b/lash.c
@@ -170,9 +170,7 @@ static struct built_in_command bltins_forking[] = {
170}; 170};
171 171
172 172
173/* Variables we export */ 173static int shell_context; /* Type prompt trigger (PS1 or PS2) */
174unsigned int shell_context; /* Used in cmdedit.c to reset the
175 context when someone hits ^C */
176 174
177 175
178/* Globals that are static to this file */ 176/* Globals that are static to this file */
@@ -716,7 +714,6 @@ static int get_command(FILE * source, char *command)
716 ** child processes (rob@sysgo.de) 714 ** child processes (rob@sysgo.de)
717 */ 715 */
718 cmdedit_read_input(prompt_str, command); 716 cmdedit_read_input(prompt_str, command);
719 cmdedit_terminate();
720 return 0; 717 return 0;
721#else 718#else
722 fputs(prompt_str, stdout); 719 fputs(prompt_str, stdout);
@@ -1557,7 +1554,6 @@ int shell_main(int argc_l, char **argv_l)
1557 1554
1558 /* These variables need re-initializing when recursing */ 1555 /* These variables need re-initializing when recursing */
1559 last_jobid = 0; 1556 last_jobid = 0;
1560 shell_context = 0;
1561 local_pending_command = NULL; 1557 local_pending_command = NULL;
1562 close_me_head = NULL; 1558 close_me_head = NULL;
1563 job_list.head = NULL; 1559 job_list.head = NULL;