"extern char **environ" in header file

+ global var g_all deleted, renamed switch_heredoc_sigint
This commit is contained in:
LuckyLaszlo
2021-11-26 21:58:52 +01:00
parent 07e98c7cf8
commit 843b6d84c5
11 changed files with 16 additions and 26 deletions

View File

@@ -6,7 +6,7 @@
/* By: lperrey <lperrey@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/11/07 02:01:33 by lperrey #+# #+# */
/* Updated: 2021/11/26 21:02:20 by lperrey ### ########.fr */
/* Updated: 2021/11/26 21:54:42 by lperrey ### ########.fr */
/* */
/* ************************************************************************** */
@@ -85,7 +85,7 @@ static t_list *ret_parameter_expansion(char *content, int *i)
if (content[*i] == '?')
{
(*i)++;
expand->content = ft_itoa(g_all->last_exit_status);
expand->content = ft_itoa(get_last_exit_status());
return (ft_retp_free(expand, tmp, free));
}
else if (content[*i] != '_' && !ft_isalpha(content[*i]))