From accab6ee102110213b1dc046fc3eba1945c20010 Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Mon, 9 Mar 2020 19:39:15 -0400 Subject: Add HISTFILE history saving --- bin/1sh/main.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'bin/1sh/main.c') diff --git a/bin/1sh/main.c b/bin/1sh/main.c index 14b7af01..86b6e981 100644 --- a/bin/1sh/main.c +++ b/bin/1sh/main.c @@ -179,6 +179,8 @@ state4: if (sflag || minusc == NULL) { cmdloop(1); } + iflag = 0; + optschanged(); exitshell(exitstatus); /*NOTREACHED*/ return 0; @@ -345,6 +347,8 @@ exitcmd(int argc, char **argv) { if (stoppedjobs()) return 0; + iflag = 0; + optschanged(); if (argc > 1) exitshell(number(argv[1])); else -- cgit 1.4.1