From 406889ed5c780f0e28703b143c72bbf035280b25 Mon Sep 17 00:00:00 2001 From: "Douglas B. Rumbaugh" Date: Sat, 1 Nov 2025 13:35:36 -0400 Subject: Got pipelining fully working --- src/hush.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/hush.c') diff --git a/src/hush.c b/src/hush.c index 255a058..557ae1e 100644 --- a/src/hush.c +++ b/src/hush.c @@ -87,7 +87,7 @@ int main(int argc, char **argv) { } } - print_commands(stdout, cmds); + // print_commands(stdout, cmds); for (command *cmd = cmds; cmd; cmd = cmd->next) { if (cmd->pid > 0) { @@ -97,12 +97,13 @@ int main(int argc, char **argv) { } } - free_tokens: - destroy_tokens(parsed_cmd); free_commands: destroy_commands(cmds); + free_tokens: + destroy_tokens(parsed_cmd); + draw_prompt: fprintf(stdout, "$ "); } -- cgit v1.2.3