builtin export redirection

This commit is contained in:
2024-04-23 13:22:03 +02:00
parent 3fac53244f
commit 3cf92d0495
5 changed files with 23 additions and 21 deletions

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/22 19:55:41 by marde-vr ### ########.fr */
/* Updated: 2024/04/23 13:21:32 by tomoron ### ########.fr */
/* */
/* ************************************************************************** */
@ -136,6 +136,13 @@ int get_cmd_count(t_cmd *cmds)
return (nb);
}
int is_parentethis(t_cmd *cmd)
{
if(!cmd)
return(0);
return(cmd->cmd_type == PAREN || (cmd->cmd_type == PIPE && cmd->next->cmd_type == PAREN));
}
void print_signaled(int status)
{
int signal;