mirror of
https://github.com/Savapitech/42sh.git
synced 2026-03-18 21:50:35 +01:00
Cd now change the PWD value
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user