diff options
author | June McEnroe <june@causal.agency> | 2019-06-28 21:21:00 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2019-06-28 21:21:36 -0400 |
commit | 39129e90251a3dff3fda005eabf5ce3df7730941 (patch) | |
tree | db2bbf9c245b72528a286bf0a2a54f27733c8096 | |
parent | Consolidate catsh history documentation (diff) | |
download | src-39129e90251a3dff3fda005eabf5ce3df7730941.tar.gz src-39129e90251a3dff3fda005eabf5ce3df7730941.zip |
Unset iflag when exiting catsh
It saves history! It's usable!
Diffstat (limited to '')
-rw-r--r-- | bin/catsh/main.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/catsh/main.c b/bin/catsh/main.c index c3b28173..7a0bf25b 100644 --- a/bin/catsh/main.c +++ b/bin/catsh/main.c @@ -173,6 +173,8 @@ state4: if (sflag || minusc == NULL) { cmdloop(1); } + iflag = 0; + optschanged(); exitshell(exitstatus); /*NOTREACHED*/ return 0; @@ -339,6 +341,8 @@ exitcmd(int argc, char **argv) { if (stoppedjobs()) return 0; + iflag = 0; + optschanged(); if (argc > 1) exitshell(number(argv[1])); else |