diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-04-26 18:27:38 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-04-26 18:27:38 +0200 |
commit | 4e79c9227066b84632bafb3dda439f463c1e922b (patch) | |
tree | 5bf5662c5a8ab7529a7802e1235256d866fef233 /src/ft_s_init.c | |
parent | Nice vars gathering (diff) | |
download | 42-minishell-4e79c9227066b84632bafb3dda439f463c1e922b.tar.gz 42-minishell-4e79c9227066b84632bafb3dda439f463c1e922b.tar.bz2 42-minishell-4e79c9227066b84632bafb3dda439f463c1e922b.tar.xz 42-minishell-4e79c9227066b84632bafb3dda439f463c1e922b.tar.zst 42-minishell-4e79c9227066b84632bafb3dda439f463c1e922b.zip |
Got special variables running
Diffstat (limited to 'src/ft_s_init.c')
-rw-r--r-- | src/ft_s_init.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ft_s_init.c b/src/ft_s_init.c index 5de17c1..46dac90 100644 --- a/src/ft_s_init.c +++ b/src/ft_s_init.c @@ -19,7 +19,8 @@ #include "ft_s_init.h" t_msh - *ft_init_msh(char *envp[]) + *ft_init_msh(const char *argv[], + char *envp[]) { t_msh *msh; @@ -27,7 +28,7 @@ t_msh return (NULL); if (!(msh->ps_one = ft_strdup(FT_PS_ONE))) return (NULL); - if (!(msh->shname = ft_strdup(FT_DEFAULT_SHNAME))) + if (!(msh->shname = ft_strdup(argv[0]))) return (NULL); msh->cwd = NULL; msh->cwd = getcwd(NULL, 0); |