diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-04-28 15:09:25 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-04-28 15:09:25 +0200 |
commit | abec91e56b179d9d327da2d3d9ae960f5260e14f (patch) | |
tree | b59ef461abb50a1e81c8bd5350d6391711a2af05 /src/ft_s_init.c | |
parent | Ok cd (diff) | |
download | 42-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 'src/ft_s_init.c')
-rw-r--r-- | src/ft_s_init.c | 1 |
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 */ |