Cd now change the PWD value

This commit is contained in:
savalet
2025-05-05 23:53:18 +02:00
parent 36997c2647
commit 31240615fb

View File

@@ -73,6 +73,7 @@ int builtins_cd_chdir(ef_t *ef, char **args, char *path)
}
free(ef->exec_ctx->history->last_chdir);
ef->exec_ctx->history->last_chdir = act_pwd;
set_env(ef->env, "PWD", path);
return RETURN_SUCCESS;
}