Files
bare-operating-system/packages/bare-os-coreutils/man/pages/sh.json
T
Raven Scott 346bb71ffe Complete the internal “100 task” roadmap: coreutils and shell parity (xargs,
sh, diff/patch, sort, printf, find, test, getfacl/setfacl/xattr), expanded
/proc and metrics (process table, syscalls, replication, net, security
posture, worker budget, swarm/replication hints), initd DAG supervision
metadata and richer restart journal telemetry, synthetic process groups via
IPC (assignProcessGroup/signalProcessGroup) mirrored into process_table,
optional kernel.ext.d incremental hot reload (BARE_OS_KERNEL_EXT_D_HOT_RELOAD)
with reload audit NDJSON, features proc for hyperblobs dedup and systemd
subset documentation, vault threat model doc plus posture fields for AEAD,
Pear enclave pointer, account rotation continuity, and Ed25519 consistency
across boot manifest / extensions / replication. Adds or extends tests and
keeps kernel/ and packages/bare-os-seeder/kernel/ in parity; guest init is
bundled from kernel/lib/init/init-main.js via bundle-kernel-init.
2026-04-04 21:23:49 -04:00

21 lines
839 B
JSON

{
"name": "sh",
"section": 1,
"title": "run a shell script (minimal)",
"synopsis": ["sh SCRIPT"],
"description": "Reads SCRIPT from the VFS, strips one leading `#!` line, then runs each non-empty, non-comment line via **`ctx.execLine`** (same pipeline and builtins as the interactive shell). Not a full POSIX `sh`; no `-c`, here-documents, or functions.",
"options": [],
"keywords": ["sh", "shebang", "bare-os", "coreutils"],
"bareOsNotes": "Requires **`ctx.execLine`**. POSIX coverage index: **`/etc/bare-os/posix_utilities.json`** (utilities.sh). Symlink targets are followed when opening SCRIPT.",
"examples": [
{
"caption": "run a small script from $PWD",
"code": "sh ./setup.sh"
},
{
"caption": "shebang line is ignored for execution",
"code": "#!/bin/sh\necho hello"
}
]
}