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>
19 lines
431 B
Markdown
19 lines
431 B
Markdown
---
|
|
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` *
|
|
|
|
1. `n` > 0
|
|
> print text=cwd-ok
|
|
2. *
|
|
> print text=cwd-empty
|