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

Function sh_script

src/pipeline/pass_shell.c:2868–2880  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2866}
2867
2868static void sh_script(sh_pass_t *p, const char *rel, const char *src, size_t len) {
2869 CBMArena a;
2870 cbm_arena_init(&a);
2871 sh_t s;
2872 sh_state_init(&s, p, &a, rel);
2873 if (s.env) {
2874 s.script = sh_anchor(&a, rel);
2875 s.cwd = (sh_cwd_t){SH_FREE, NULL};
2876 sh_run(&s, p->parser, src, len);
2877 }
2878 sh_state_free(&s);
2879 cbm_arena_destroy(&a);
2880}
2881
2882/* ── Make ──────────────────────────────────────────────────────────── */
2883

Callers 1

sh_pass_fileFunction · 0.85

Calls 6

sh_state_initFunction · 0.85
sh_anchorFunction · 0.85
sh_runFunction · 0.85
sh_state_freeFunction · 0.85
cbm_arena_initFunction · 0.50
cbm_arena_destroyFunction · 0.50

Tested by

no test coverage detected