From 52f8b31f8a06a39b223780d2df304b06d0d43daa Mon Sep 17 00:00:00 2001 From: Ákos Kőrösi Date: Fri, 22 May 2026 10:17:50 +0200 Subject: fix some quoting bugs --- src/lexparse.c | 2 +- src/preproc.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/lexparse.c b/src/lexparse.c index a4105eb..eae5c16 100644 --- a/src/lexparse.c +++ b/src/lexparse.c @@ -115,7 +115,7 @@ static void collect_double_q_section(char* line, Word* result_buf, size_t* pos) push_to_String(&lit_buf, '$'); } } else { - push_to_String(&lit_buf, line[*pos]); + push_to_String(&lit_buf, line[(*pos)++]); } } if (line[(*pos)++] == '\0') exit(46); diff --git a/src/preproc.c b/src/preproc.c index 5669ce4..8865968 100644 --- a/src/preproc.c +++ b/src/preproc.c @@ -69,6 +69,7 @@ StrVec process_word(Word word, ShellState* shstate) { Chunk chunk = *get_from_Word(&word, i); process_chunk(chunk, &split_bui, shstate); } + consolidate_split_builder(&split_bui); return split_bui.completed_fields; } -- cgit v1.2.3