commit c7c714c

seiko  ·  2026-05-30 15:49:58 +0000 UTC
parent 7edb969
use $SHELL if `shell` not set
1 files changed,  +6, -1
+6, -1
 1@@ -178,7 +178,12 @@ static void init(void)
 2 	if (term.ptypid == 0) {
 3 		/* TODO: change later */
 4 		setenv("TERM", "vt100", 1);
 5-		execlp("/bin/sh", "sh", "-i", NULL);
 6+
 7+		/* shell */
 8+		if (shell == NULL)
 9+			shell = getenv("SHELL");
10+
11+		execl(shell, "-i", NULL);
12 		_exit(127);
13 	}
14