diff options
Diffstat (limited to 'progs/shel/shel.c')
-rw-r--r-- | progs/shel/shel.c | 1 |
1 files changed, 1 insertions, 0 deletions
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); |