Files
bare-operating-system/packages/bare-os-coreutils/man/pages/test.json
T
Raven Scott 071edccfb3 Expand bounded awk/expr/test toward Issue 7; refresh man, profile 1.0.18,
posix matrix/dashboard, and syscalls/process_table schema alignment (v8).

Booter: replication_operator_sketch/corestore hints, HRPC allowlist tests,
Protomux cap channel 65536-byte bound + export, Wasm posix_profile_peek,
swarm-disk and security_posture docs.

Coreutils/kernel: pkg-swarm-index pathCapabilityEnvelopeVerify on get;
pathcap-verify --trusted failure hint; rebuild bins and sync seeder.

Docs: KERNEL_CONTRACT, kernel-extensions, capabilities index, environment
appendix (warm-cache tuning, cap channel, Wasm env), handbook observability,
vault threat model (multisig), developer-guide ctx/HRPC/Wasm, DOCUMENTATION
release-checklist note, release-checklist optional tier1 drift.

Changelog maintenance in bare-os-booter and bare-os-protocol.
2026-04-05 23:01:54 -04:00

31 lines
794 B
JSON

{
"name": "test",
"section": 1,
"title": "evaluate a condition",
"synopsis": [
"test [OPTION]... [OPERAND]..."
],
"description": "File and string predicates: -e -f -d -r -w -x -s -h/-L, -z -n, string = !=, integer -eq -ne -lt -le -gt -ge (decimal integers only), file mtime FILE1 -nt FILE2 / -ot and same-inode -ef when stat exposes dev+ino.",
"bareOsNotes": "-ef falls back to path string compare if dev/ino missing.",
"options": [],
"keywords": [
"test",
"bare-os",
"coreutils"
],
"examples": [
{
"caption": "file exists",
"code": "test -f ~/.barerc && echo yes"
},
{
"caption": "directory",
"code": "test -d /home/user"
},
{
"caption": "string equal",
"code": "test \"$USER\" = guest"
}
]
}