summary refs log tree commit diff
path: root/progs
diff options
context:
space:
mode:
Diffstat (limited to 'progs')
-rw-r--r--progs/shel/shel.c1
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);