From 7a106ea8332ed6d95504fd3181f7b5f81a6c3072 Mon Sep 17 00:00:00 2001 From: Ákos Kőrösi Date: Fri, 22 May 2026 14:09:14 +0200 Subject: start work on cmdsub --- src/exec.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/exec.c') diff --git a/src/exec.c b/src/exec.c index 86175a9..fb579ad 100644 --- a/src/exec.c +++ b/src/exec.c @@ -36,7 +36,7 @@ void source_script(char* fname, ShellState* shstate) { while (getline(&line, &len, fp) != -1) { line[strcspn(line, "\r\n")] = '\0'; - execute_line(line, shstate); + execute_string_line(line, shstate); } free(line); fclose(fp); @@ -265,9 +265,9 @@ void execute_command_pipeline(Pipeline pipeline, int stdin_fd, int stdout_fd, bo } } -void execute_pipeline_tree(PipelineTree pltree, ShellState* shstate) { +void execute_pipeline_tree(Pipeline root_pl, ShellState* shstate, int stdin_fd, int stdout_fd) { int pgid = -1; signal(SIGTTIN, SIG_IGN); signal(SIGTTOU, SIG_IGN); - execute_command_pipeline(*pltree.root, STDIN_FILENO, STDOUT_FILENO, true, &pgid, shstate); + execute_command_pipeline(root_pl, stdin_fd, stdout_fd, true, &pgid, shstate); } -- cgit v1.2.3