Pushing ohter sep
This commit is contained in:
parent
a07e35afb1
commit
713f0f0302
5 changed files with 68 additions and 9 deletions
23
sources/exec/separator/pipe_pipe.c
Normal file
23
sources/exec/separator/pipe_pipe.c
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* pipe_pipe.c :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/05/12 19:21:01 by rparodi #+# #+# */
|
||||
/* Updated: 2024/05/12 19:44:46 by rparodi ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include "separator.h"
|
||||
|
||||
t_error pipe_pipe(t_node *first, t_node *second, t_i32 *ret_value)
|
||||
{
|
||||
if (first || ft_command_exec(first, ret_value))
|
||||
return (NO_ERROR);
|
||||
else if (second || ft_command_exec(second, ret_value))
|
||||
return (NO_ERROR);
|
||||
else
|
||||
return (ERROR);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue