diff options
author | June McEnroe <june@causal.agency> | 2020-03-09 19:39:15 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2020-03-09 20:01:30 -0400 |
commit | 2bb9bfda46fd49e3610c92cc63268c56648a44b3 (patch) | |
tree | c7426a336630fba30c2fbc0c4d92319b821554b9 /bin/1sh/main.c | |
parent | Source .editrc before applying -v or -e (diff) | |
download | src-2bb9bfda46fd49e3610c92cc63268c56648a44b3.tar.gz src-2bb9bfda46fd49e3610c92cc63268c56648a44b3.zip |
Add HISTFILE history saving
Diffstat (limited to '')
-rw-r--r-- | bin/1sh/main.c | 4 |
1 files changed, 4 insertions, 0 deletions
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 |