feat: add cwd tracking to kernel, remove shell hack, update system utilities to use getcwd, fix tcc libc stub, fix nonexistent directory issue

This commit is contained in:
2026-03-25 15:45:22 +01:00
parent 38ac914de6
commit 1c0db774f6
22 changed files with 389 additions and 265 deletions
+1
View File
@@ -61,6 +61,7 @@ const char* var_get(const char* name) {
if (streq(name, "USER")) return session_user[0] ? session_user : nullptr;
if (streq(name, "HOME")) return session_home[0] ? session_home : nullptr;
if (streq(name, "PWD")) {
sync_cwd();
build_dir_path(cwd, synth, sizeof(synth));
return synth;
}