summaryrefslogtreecommitdiff
path: root/expand.c
diff options
context:
space:
mode:
authorÁkos Kőrösi <korakos99@gmail.com>2026-05-18 18:21:06 +0200
committerÁkos Kőrösi <korakos99@gmail.com>2026-05-18 18:21:06 +0200
commit5e02368fe8042626bf740ff52980651146b608a4 (patch)
treedba8f443faabf591a5d228120286966122897316 /expand.c
parentca675175742174d6bfcd0263583f840e250fc58f (diff)
make it work again
Diffstat (limited to 'expand.c')
-rw-r--r--expand.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/expand.c b/expand.c
index e88ec6c..11764f9 100644
--- a/expand.c
+++ b/expand.c
@@ -62,6 +62,9 @@ void expand_word(Word word, SlotVec* target, ShellState* shstate) {
break;
}
}
+ if (curr_res.active_str.count > 0) {
+ push_to_StrVec(&curr_res.complete_strs, inner(&curr_res.active_str));
+ }
for (int j = 0; j < curr_res.complete_strs.count; j++) {
char* str = *get_from_StrVec(&curr_res.complete_strs, j);
push_to_SlotVec(target, (Slot){.kind = SLOT_STR, .as.str = str});