From 7d2348ece9b72cecd4d5417a4e39ee705c349e0a Mon Sep 17 00:00:00 2001 From: Ákos Kőrösi Date: Thu, 21 May 2026 19:11:09 +0200 Subject: start building for dollar expansions --- src/main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index dc451f9..1f9198b 100644 --- a/src/main.c +++ b/src/main.c @@ -6,9 +6,11 @@ #include "syntax.h" #include "stages.h" +#include "utils.h" int main() { + ShellState shstate = {.shell_vars = make_KeyValMap(256), .aliases = make_KeyValMap(256)}; char* line; while (1) { line = readline("$ "); @@ -16,7 +18,7 @@ int main() { if (strcmp(line, "exit") == 0) exit(0); add_history(line); Ast ast = lex(line); - PipelineTree pltree = process_ast(ast); + PipelineTree pltree = process_ast(ast, &shstate); execute_pipeline_tree(pltree); } free(line); -- cgit v1.2.3