fixed exec error and normed

This commit is contained in:
mdev9
2024-02-16 15:11:20 +01:00
parent 9d15c79d02
commit c3aefd859b
5 changed files with 41 additions and 41 deletions

16
debug.c
View File

@ -3,10 +3,10 @@
/* ::: :::::::: */
/* debug.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: tomoron <marvin@42.fr> +#+ +:+ +#+ */
/* By: marde-vr <marde-vr@42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/02/15 14:16:47 by tomoron #+# #+# */
/* Updated: 2024/02/15 14:45:29 by tomoron ### ########.fr */
/* Updated: 2024/02/16 15:08:40 by marde-vr ### ########.fr */
/* */
/* ************************************************************************** */
@ -14,16 +14,16 @@
void print_parsed_cmd(t_cmd *cmd)
{
while(cmd)
while (cmd)
{
printf("[");
if(cmd->type == ARG)
printf("ARG : %s",cmd->token);
else if(cmd->type == PIPE)
if (cmd->type == ARG)
printf("ARG : %s", cmd->token);
else if (cmd->type == PIPE)
printf("PIPE");
else if(cmd->type == OR)
else if (cmd->type == OR)
printf("OR");
else if(cmd->type == AND)
else if (cmd->type == AND)
printf("AND");
printf("] ");
cmd = cmd->next;