aboutsummaryrefslogtreecommitdiffstats
path: root/src/hush.c
diff options
context:
space:
mode:
authorDouglas B. Rumbaugh <doug@douglasrumbaugh.com>2025-11-01 13:35:36 -0400
committerDouglas B. Rumbaugh <doug@douglasrumbaugh.com>2025-11-01 13:35:36 -0400
commit406889ed5c780f0e28703b143c72bbf035280b25 (patch)
tree9158054087bda207eed65e13e3e706ceb8467388 /src/hush.c
parent1c2f33050478e5c859fa7be390681b39ee7311b2 (diff)
downloadhush-406889ed5c780f0e28703b143c72bbf035280b25.tar.gz
Got pipelining fully working
Diffstat (limited to 'src/hush.c')
-rw-r--r--src/hush.c7
1 files changed, 4 insertions, 3 deletions
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, "$ ");
}