After the conditional: whatever any alternative set is unknown. */
| 514 | |
| 515 | /* After the conditional: whatever any alternative set is unknown. */ |
| 516 | static void sh_group_end(sh_t *s, sh_touch_t *t) { |
| 517 | for (int i = 0; i < t->n; i++) { |
| 518 | sh_set(s, t->names[i], &SH_UNKNOWN_VAL, false); |
| 519 | } |
| 520 | if (t->cwd) { |
| 521 | s->cwd = (sh_cwd_t){SH_LOST, NULL}; |
| 522 | } |
| 523 | cbm_free(CBM_MEM_CLASS_OTHER, (void *)t->names); |
| 524 | *t = (sh_touch_t){0}; |
| 525 | } |
| 526 | |
| 527 | /* ── Word evaluation ───────────────────────────────────────────────── */ |
| 528 |