summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorÁkos Kőrösi <korakos99@gmail.com>2026-05-21 20:30:04 +0200
committerÁkos Kőrösi <korakos99@gmail.com>2026-05-21 20:30:04 +0200
commit3c283f1e2f4ef6b89481480c43fbc4408cd71a51 (patch)
tree0e66eef811fadeb85cfbb03820f8cd49fd0dd943 /src/main.c
parentb56361b4687359f21c581367b05c8b74d0ff769e (diff)
start builtins
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index 1f9198b..6653fdd 100644
--- a/src/main.c
+++ b/src/main.c
@@ -15,11 +15,10 @@ int main() {
while (1) {
line = readline("$ ");
if (line[0] == '\0') continue;
- if (strcmp(line, "exit") == 0) exit(0);
add_history(line);
Ast ast = lex(line);
PipelineTree pltree = process_ast(ast, &shstate);
- execute_pipeline_tree(pltree);
+ execute_pipeline_tree(pltree, &shstate);
}
free(line);
}