Qu

setenv

Builtin index

What it is

No chapter describes this one yet. It exists -- the name comes from the interpreter's own table -- but the prose has not been written. That is a gap in the documentation, not in the engine.

Overloads

One call shape — this function is not overloaded.

CodeInputOutputDescription
no inputnot documented yet—

Examples

No documentation example calls this form yet.

How it works

setenv(name, value)/unsetenv(name) -- getenv's missing write half (§ bash/shell toolkit audit, 2026-09-23, BACKLOG.md). Changes THIS process's own environment, which a later exec/shell call (without an env= override) inherits, same as a real shell's export would flow into whatever it launches next.

From the note above this builtin in the interpreter, where the reasoning was written down as it was built.