From 0916bce4d23c59e3d12df3b216fad62b60e4f155 Mon Sep 17 00:00:00 2001 From: Ákos Kőrösi Date: Mon, 18 May 2026 12:09:53 +0200 Subject: add exec to the lex refactor --- exec.c | 2 +- main.c | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/exec.c b/exec.c index 061fa69..d07ea73 100644 --- a/exec.c +++ b/exec.c @@ -56,7 +56,7 @@ void add_expchunk(char* next_str, WordSplittingGerm* curr_res) { StrVec expand_word(Word word, ShellState* state) { WordSplittingGerm curr_res = {.complete_strs = make_StrVec(256), .active_str = make_String(25)}; for (int i = 0; i < word.count; i++) { - Chunk curr_cunk = *get_from_Word(&word, i); + Chunk curr_cunk = **get_from_Word(&word, i); ExpandedChunk curr_exp = expand_chunk(curr_cunk, state); switch (curr_exp.qmode) { case UN_Q: diff --git a/main.c b/main.c index 923fa68..5b3041c 100644 --- a/main.c +++ b/main.c @@ -27,9 +27,7 @@ int main() { tokstream[i] = **get_from_TokenPtrVec(&line_tok_ptrs, i); } Pipeline pl = parse_tokstream(tokstream); - /* run_pipeline(pl, &shstate); - */ free(tokstream); } free(line); -- cgit v1.2.3