debut signal

This commit is contained in:
2024-03-22 20:12:25 +01:00
parent 2718546387
commit 7b6c75b5c3
8 changed files with 59 additions and 14 deletions

View File

@ -6,7 +6,7 @@
/* By: marde-vr <marde-vr@42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/03/05 18:22:15 by marde-vr #+# #+# */
/* Updated: 2024/03/21 13:51:22 by marde-vr ### ########.fr */
/* Updated: 2024/03/22 14:07:57 by tomoron ### ########.fr */
/* */
/* ************************************************************************** */
@ -70,7 +70,10 @@ char **get_cmd_args(t_msh *msh)
{
if (cur_cmd->type == ARG)
{
cmd_args[i] = remove_path(cur_cmd->token);
if(!i)
cmd_args[i] = remove_path(cur_cmd->token);
else
cmd_args[i] = cur_cmd->token;
i++;
}
else