here doc repaired and makefile exec.c

This commit is contained in:
2024-04-19 20:51:24 +02:00
parent e2898b8128
commit a42ddc1955
2 changed files with 4 additions and 3 deletions

View File

@ -6,7 +6,7 @@
# By: marde-vr <marde-vr@42angouleme.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2023/07/28 00:35:01 by tomoron #+# #+# #
# Updated: 2024/04/18 23:06:00 by marde-vr ### ########.fr #
# Updated: 2024/04/19 20:50:56 by tomoron ### ########.fr #
# #
# **************************************************************************** #
@ -16,7 +16,6 @@ SRCS_RAW = main.c\
cd.c\
lst_env.c\
lst_token.c\
exec.c\
exit.c\
is_fd_open.c\
echo.c\

View File

@ -6,7 +6,7 @@
/* By: marde-vr <marde-vr@42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/03/28 13:50:14 by tomoron #+# #+# */
/* Updated: 2024/04/19 18:49:33 by marde-vr ### ########.fr */
/* Updated: 2024/04/19 20:50:11 by tomoron ### ########.fr */
/* */
/* ************************************************************************** */
@ -125,6 +125,8 @@ int get_cmd_count(t_cmd *cmds)
int nb;
nb = 0;
while(cmds && (is_output_type(cmds) || is_input_type(cmds)))
cmds=cmds->next;
while (cmds && !is_operand_type(cmds))
{
if (is_cmd_type(cmds))