aboutsummaryrefslogtreecommitdiff
path: root/src/eval/operation.c
diff options
context:
space:
mode:
authorCharles Cabergs <me@cacharle.xyz>2020-10-09 20:40:49 +0200
committerCharles Cabergs <me@cacharle.xyz>2020-10-09 20:41:22 +0200
commita55e414f6709c6b22ff9805cd32a40fae9da2538 (patch)
treeeae9b8e9d6415b9b68d847ee83e4f3f4c126be87 /src/eval/operation.c
parent4f3b4275d79d2c9d9fe3de3932e235ce2262e5f5 (diff)
downloadminishell-a55e414f6709c6b22ff9805cd32a40fae9da2538.tar.gz
minishell-a55e414f6709c6b22ff9805cd32a40fae9da2538.tar.bz2
minishell-a55e414f6709c6b22ff9805cd32a40fae9da2538.zip
Added interpolation prototype (segfault on linux otherwise)
Diffstat (limited to 'src/eval/operation.c')
-rw-r--r--src/eval/operation.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/eval/operation.c b/src/eval/operation.c
index f1daa0b..826727a 100644
--- a/src/eval/operation.c
+++ b/src/eval/operation.c
@@ -6,7 +6,7 @@
/* By: charles <charles.cabergs@gmail.com> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/06/17 15:27:22 by charles #+# #+# */
-/* Updated: 2020/10/09 16:12:14 by cacharle ### ########.fr */
+/* Updated: 2020/10/09 20:39:33 by charles ### ########.fr */
/* */
/* ************************************************************************** */
@@ -69,6 +69,7 @@ int eval_pipeline(t_env env, t_ast *ast)
int pid;
pipes[PIPES_PREV_OUTPUT] = STDIN_FILENO;
+ pipes[FD_READ] = -1;
curr = ast->pipeline;
while (curr->next != NULL)
{