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

Function sh_cwd_value

src/pipeline/pass_shell.c:612–614  ·  view source on GitHub ↗

The cwd as a value: the anchored directory, or NULL. */

Source from the content-addressed store, hash-verified

610
611/* The cwd as a value: the anchored directory, or NULL. */
612static const char *sh_cwd_value(sh_t *s) {
613 return s->cwd.mode == SH_AT ? sh_anchor(s->a, s->cwd.dir) : NULL;
614}
615
616/* A variable's value; *found: it is set (or a special that exists). */
617static const sh_val_t *sh_lookup(sh_t *s, const char *name, bool *found) {

Callers 2

sh_lookupFunction · 0.85
sh_eval_subst_commandFunction · 0.85

Calls 1

sh_anchorFunction · 0.85

Tested by

no test coverage detected