MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / sh_group_end

Function sh_group_end

src/pipeline/pass_shell.c:516–525  ·  view source on GitHub ↗

After the conditional: whatever any alternative set is unknown. */

Source from the content-addressed store, hash-verified

514
515/* After the conditional: whatever any alternative set is unknown. */
516static 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

Callers 5

sh_listFunction · 0.85
sh_ifFunction · 0.85
sh_caseFunction · 0.85
sh_loopFunction · 0.85
sh_functionFunction · 0.85

Calls 2

sh_setFunction · 0.85
cbm_freeFunction · 0.85

Tested by

no test coverage detected