mirror of
https://github.com/KeyZox71/ft_minipowershell.git
synced 2025-05-10 22:58:45 +02:00
「🔨」 fix: heredoc not fucking up parsing
This commit is contained in:
@ -6,7 +6,7 @@
|
||||
/* By: mmoussou <mmoussou@student.42angouleme.fr +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/05/04 15:00:32 by adjoly #+# #+# */
|
||||
/* Updated: 2024/07/18 13:02:26 by adjoly ### ########.fr */
|
||||
/* Updated: 2024/07/20 17:49:22 by adjoly ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@ -19,10 +19,14 @@ t_cmd *split_cmd(char *cmd_av, t_cmd *cmd)
|
||||
|
||||
split = split_argv(cmd_av);
|
||||
if (!split)
|
||||
return (NULL);
|
||||
{
|
||||
cmd->argv = NULL;
|
||||
cmd->cmd = NULL;
|
||||
return (cmd);
|
||||
}
|
||||
cmd->cmd = ft_strdup(*split);
|
||||
if (!cmd->cmd)
|
||||
return (NULL);
|
||||
return (cmd);
|
||||
cmd->argv = split;
|
||||
return (cmd);
|
||||
}
|
||||
|
Reference in New Issue
Block a user