Files
bux-lang/examples/process.bux
T
dimgigov 53b43b0f79 feat: lifetime elision, tooling CI, registry, and LSP locals
Ship the QUALITY_PLAN stretch from ownership through ecosystem: C.1
lifetime elision (bootstrap + selfhost), bux fmt/test/doc CI hooks,
stdlib goldens, package registry (bux search/add), and LSP 0.4
position-sensitive locals with inferred let types. Full-tree format
pass plus Map/Set remove double-free fix.
2026-07-19 16:35:08 +03:00

17 lines
458 B
Plaintext

// Process - Run external commands and capture output
import Std::Io::{PrintLine};
import Std::Process::{Process_Run, Process_Output};
import Std::Fmt::{Fmt_Fmt1, Fmt_FmtInt};
func Main() -> int {
PrintLine("Process demo:");
let output: String = Process_Output("echo Hello from subprocess");
PrintLine(Fmt_Fmt1("Captured: {0}", output));
let rc: int = Process_Run("true");
PrintLine(Fmt_FmtInt("Exit code: {0}", rc));
return 0;
}