summaryrefslogtreecommitdiffstats
path: root/src/ft_s_init.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-04-28 15:09:25 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-04-28 15:09:25 +0200
commitabec91e56b179d9d327da2d3d9ae960f5260e14f (patch)
treeb59ef461abb50a1e81c8bd5350d6391711a2af05 /src/ft_s_init.c
parentOk cd (diff)
download42-minishell-abec91e56b179d9d327da2d3d9ae960f5260e14f.tar.gz
42-minishell-abec91e56b179d9d327da2d3d9ae960f5260e14f.tar.bz2
42-minishell-abec91e56b179d9d327da2d3d9ae960f5260e14f.tar.xz
42-minishell-abec91e56b179d9d327da2d3d9ae960f5260e14f.tar.zst
42-minishell-abec91e56b179d9d327da2d3d9ae960f5260e14f.zip
Nice functional cd
Diffstat (limited to '')
-rw-r--r--src/ft_s_init.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ft_s_init.c b/src/ft_s_init.c
index 46dac90..76bf72d 100644
--- a/src/ft_s_init.c
+++ b/src/ft_s_init.c
@@ -30,6 +30,7 @@ t_msh
return (NULL);
if (!(msh->shname = ft_strdup(argv[0])))
return (NULL);
+ /* TODO: shname: care about "./", try with symlinks */
msh->cwd = NULL;
msh->cwd = getcwd(NULL, 0);
/* TODO: handle getcwd failed */