1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:48:10 +00:00

Shell: Move the Shell to a separate directory and let's call it "Shell" :^)

This commit is contained in:
Andreas Kling 2019-05-07 01:12:08 +02:00
parent e63cc38861
commit fe73543d41
7 changed files with 217 additions and 180 deletions

View file

@ -65,9 +65,9 @@ static void make_shell(int ptm_fd)
perror("ioctl(TIOCSCTTY)");
exit(1);
}
char* args[] = { "/bin/sh", nullptr };
char* args[] = { "/bin/Shell", nullptr };
char* envs[] = { "TERM=xterm", "PATH=/bin:/usr/bin", nullptr };
rc = execve("/bin/sh", args, envs);
rc = execve("/bin/Shell", args, envs);
if (rc < 0) {
perror("execve");
exit(1);