diff options
Diffstat (limited to 'expand.c')
| -rw-r--r-- | expand.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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}); |
