From 308cadbf0934975575b6a5e4e38bbaa7aa103edd Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Tue, 4 Aug 2020 16:05:01 +0200 Subject: later --- src/s_init.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/s_init.c b/src/s_init.c index 7bf03f7..d277984 100644 --- a/src/s_init.c +++ b/src/s_init.c @@ -95,6 +95,7 @@ t_msh msh->vars = NULL; msh->cwd = NULL; if ((msh->cwd = u_get_var_value("$PWD", msh)) == NULL) + msh->cwd = getcwd(NULL, 0); inc_shlvl(msh); return (msh); } -- cgit v1.2.3