summaryrefslogtreecommitdiff
path: root/expand.c
diff options
context:
space:
mode:
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});