From f5579768b8e27dbba16101dc3295927c15b36a1a Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Sat, 10 Oct 2020 13:04:20 +0200 Subject: Fixing signal last status code --- src/eval/parenthesis.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'src/eval/parenthesis.c') diff --git a/src/eval/parenthesis.c b/src/eval/parenthesis.c index 6f4f9e0..c7bc2d2 100644 --- a/src/eval/parenthesis.c +++ b/src/eval/parenthesis.c @@ -6,7 +6,7 @@ /* By: charles +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/09/13 20:38:29 by charles #+# #+# */ -/* Updated: 2020/10/07 15:56:09 by cacharle ### ########.fr */ +/* Updated: 2020/10/10 12:44:59 by cacharle ### ########.fr */ /* */ /* ************************************************************************** */ @@ -17,6 +17,16 @@ int wrapped_eval(t_fork_param_args *param) return (eval(param->fds, param->env, param->ast)); } +/* +** \brief Evaluate a parenthesized expression +** Extract parenthesis redirection and evaluate +** the expression contained in the parenthesis in a fork +** \param fds Input/output filedescriptor +** \param env Environment +** \param ast Parenthesis AST node +** \return Expression status code +*/ + int eval_parenthesis(int fds[2], t_env env, t_ast *ast) { int status; -- cgit