Userspace: Shell now sets SHELL environment variable

This commit is contained in:
Bananymous
2023-06-18 23:35:51 +03:00
parent 275a730485
commit 191a24110a

View File

@@ -217,6 +217,9 @@ void print_prompt()
int main(int argc, char** argv)
{
if (argc >= 1)
setenv("SHELL", argv[0], true);
tcgetattr(0, &old_termios);
new_termios = old_termios;