From 6ed3eeba2db2c596903204ecc11a0b1c701c56af Mon Sep 17 00:00:00 2001 From: WlodekM Date: Sat, 15 Feb 2025 14:44:14 +0200 Subject: fix shel --- progs/shel/shel.c | 1 + 1 file changed, 1 insertion(+) (limited to 'progs') diff --git a/progs/shel/shel.c b/progs/shel/shel.c index 7e8c310..dc51a92 100644 --- a/progs/shel/shel.c +++ b/progs/shel/shel.c @@ -105,6 +105,7 @@ int main() { continue; } + chdir(path); __pid_t forkResult = fork(); if (forkResult == 0) { execve(command, argv, 0); -- cgit 1.4.1-2-gfad0