Skip to main content

Module process

Module process 

Source
Expand description

Process / shell integration.

(exec-check CMD ARG…) → 0 on success, non-zero exit code otherwise Streams stdin/stdout/stderr to the parent. (exec-capture CMD ARG…) → ((:status N) (:stdout “…”) (:stderr “…”)) Captures stdout + stderr, exposes exit code. (exec-ok? CMD ARG…) → bool; true iff exit code is 0 (sh-exec STR) → convenience: run STR through sh -c returning the capture-form result

No implicit shell interpolation. Arguments are passed literally to the underlying process; no glob / word-splitting / $VAR substitution. Scripts that want shell features use sh-exec explicitly.

Functions§

install