Userspace: Shell now sets SHELL environment variable

This commit is contained in:
Bananymous 2023-06-18 23:35:51 +03:00
parent 10544db52e
commit e7a98ac6cc
1 changed files with 3 additions and 0 deletions

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;