Implement sh -c COMMAND [NAME [ARG...]] in /bin/sh, add shell function declarations/invocation support, expand export semantics (NAME, NAME=value, -p), and make until/loop-control behavior available by default. Add focused shell tests and update sh man-page option docs.
21 lines
621 B
JSON
21 lines
621 B
JSON
{
|
|
"name": "sh",
|
|
"section": 1,
|
|
"title": "sh",
|
|
"synopsis": [
|
|
"sh [OPTION]... [OPERAND]..."
|
|
],
|
|
"description": "Runs shell commands via ctx.execLine (same language as the interactive booter shell). Supports command-string mode (`-c`) and script-file mode (`sh SCRIPT`). This is not the interactive REPL; see man bare-os-shell for session builtins, pipelines, and jobs.",
|
|
"options": [
|
|
{
|
|
"flag": "-c COMMAND [NAME [ARG ...]]",
|
|
"meaning": "Execute command string and set positional parameters for that command context."
|
|
}
|
|
],
|
|
"keywords": [
|
|
"sh",
|
|
"bare-os",
|
|
"coreutils"
|
|
]
|
|
}
|