Use + for parameters, ordered-list branches, backtick identifiers, and quoted strings with escapes. Add writeback and subtask host libs, optional parameter defaults, narrative-bold comment fix, and defer view execution until preset stdin is submitted. Co-authored-by: Cursor <cursoragent@cursor.com>
431 B
431 B
title: lib/sys — process description: Env, dotenv, cwd, args, exit, exec
lib/sys.mq.md
main
Import lib/sys.mq.md. Functions: env_get, env_set, load_dotenv(optional path), args, cwd, exit(code), exec(cmd). load_dotenv does not override existing variables. Under view, exit soft-fails instead of killing the process.
*d = > cwd *
*n = > len d *
n> 0
print text=cwd-ok
print text=cwd-empty