From 176abf43dd8b41e66256ad7bb78d7a4df974a978 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Fri, 29 Dec 2023 16:45:47 -0600 Subject: [PATCH] Fix sh "exit" command to actually exit (broken in commit 7fac232b4d25). --- toys/pending/sh.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/toys/pending/sh.c b/toys/pending/sh.c index 9299d8d6..37c2052d 100644 --- a/toys/pending/sh.c +++ b/toys/pending/sh.c @@ -4395,6 +4395,8 @@ void cd_main(void) void exit_main(void) { toys.exitval = *toys.optargs ? atoi(*toys.optargs) : 0; + toys.rebound = 0; + // TODO trap EXIT, sigatexit xexit(); } -- 2.39.2