summary refs log tree commit diff
path: root/bin
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-06-28 21:21:00 -0400
committerJune McEnroe <june@causal.agency>2019-06-28 21:21:36 -0400
commit10332fb4df3ffec3d8a3d403a4f7869b9488a524 (patch)
tree73d3ae73e070330bf2d92a163dbd035d98efe24b /bin
parentConsolidate catsh history documentation (diff)
downloadsrc-10332fb4df3ffec3d8a3d403a4f7869b9488a524.tar.gz
src-10332fb4df3ffec3d8a3d403a4f7869b9488a524.zip
Unset iflag when exiting catsh
It saves history! It's usable!
Diffstat (limited to '')
-rw-r--r--bin/catsh/main.c4
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
0500'>2021-01-12Prevent matching the same tag twiceJune McEnroe 2021-01-12Process htagml file line by lineJune McEnroe 2021-01-12Split fields by tab onlyJune McEnroe 2021-01-12List both Makefile and html.sh under README.7June McEnroe 2021-01-12Add htagml exampleJune McEnroe 2021-01-12Use mandoc and htagml for bin htmlJune McEnroe 2021-01-12Add htagmlJune McEnroe 2021-01-12Replace causal.agency with a simple mdoc pageJune McEnroe 2021-01-11Publish "Using vi"June McEnroe 2021-01-11Enable diff.colorMovedJune McEnroe 2021-01-10Set less search case-insensitiveJune McEnroe 2021-01-10Set EXINITJune McEnroe 2021-01-09Add c -t flag to print expression typeJune McEnroe 2021-01-05Update taglineJune McEnroe