|
|
@ -6,7 +6,7 @@ |
|
|
|
/* By: mea <mea@student.42.fr> +#+ +:+ +#+ */ |
|
|
|
/* +#+#+#+#+#+ +#+ */ |
|
|
|
/* Created: 2022/05/02 16:09:25 by narnaud #+# #+# */ |
|
|
|
/* Updated: 2022/05/17 17:01:44 by narnaud ### ########.fr */ |
|
|
|
/* Updated: 2022/05/17 17:14:15 by narnaud ### ########.fr */ |
|
|
|
/* */ |
|
|
|
/* ************************************************************************** */ |
|
|
|
|
|
|
@ -68,7 +68,7 @@ static t_token *parse_cmd(t_datas *datas, t_token *tok, t_command *cmd) |
|
|
|
|
|
|
|
if (tok->value[0] == '(') |
|
|
|
{ |
|
|
|
cmd->argv[cmd->argc++] = get_var_value(datas, "MINISH", 6); |
|
|
|
cmd->argv[cmd->argc++] = get_var_value(datas, "_", 2); |
|
|
|
cmd->argv[cmd->argc++] = ft_substr(tok->value, |
|
|
|
1, ft_strlen(tok->value) - 2); |
|
|
|
} |
|
|
|