"extern char **environ" in header file
+ global var g_all deleted, renamed switch_heredoc_sigint
This commit is contained in:
@@ -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]))
|
||||
|
||||
Reference in New Issue
Block a user