End one alternative of a conditional: what it set is noted, then undone. */
| 503 | |
| 504 | /* End one alternative of a conditional: what it set is noted, then undone. */ |
| 505 | static void sh_clause_end(sh_t *s, sh_mark_t m, sh_touch_t *t) { |
| 506 | for (int i = m.undo; i < s->nundo; i++) { |
| 507 | sh_touch_add(t, s->undo[i].name); |
| 508 | } |
| 509 | if (!sh_cwd_same(s->cwd, m.cwd) || s->ndirs != m.ndirs) { |
| 510 | t->cwd = true; |
| 511 | } |
| 512 | sh_rewind(s, m); |
| 513 | } |
| 514 | |
| 515 | /* After the conditional: whatever any alternative set is unknown. */ |
| 516 | static void sh_group_end(sh_t *s, sh_touch_t *t) { |
no test coverage detected