summary refs log tree commit diff
path: root/progs/shel
diff options
context:
space:
mode:
authorWlodekM <[email protected]>2025-02-15 14:44:14 +0200
committerWlodekM <[email protected]>2025-02-15 14:44:14 +0200
commit6ed3eeba2db2c596903204ecc11a0b1c701c56af (patch)
tree8b0d1e8c9babd019c79945d281f451f59acafd46 /progs/shel
parentbeb8d507d2f2a024839efa91aaedad4100759039 (diff)
fix shel
Diffstat (limited to 'progs/shel')
-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);