Compare commits

..

2 Commits

Author SHA1 Message Date
Michael
7dc85ea994 fix: programs inherit environ 2026-10-09 15:22:24 +02:00
Michael
4c150fe869 feat: add readme 2026-10-09 15:21:38 +02:00
2 changed files with 13 additions and 1 deletions

12
README.md Normal file
View File

@@ -0,0 +1,12 @@
# MSH
- a toy shell implementation
## What it can do
- handle text input
- run binaries
- change directory
## What it can't do
- any sort of scripting, variables
- no fatal memory corruption bugs
- pretty colors and themes :(

View File

@@ -315,7 +315,7 @@ print_prompt:
pid = fork();
if(pid == 0) {
return execvpe(tokens[0], tokens, NULL);
return execvpe(tokens[0], tokens, environ);
} else {
waitpid(pid, &wstatus, 0);