code wiki / _hdl_build / nx_shell_run.nx
nx_shell_run.nx
buildroot/runtime/_hdl_build/nx_shell_run.nx
about
nx_shell_run.nx -- the DRIVABLE sovereign Nishi shell: reads a script (knowledge/shell/run.nsh) and executes each
line via the GENERAL nx_shell_lib's full executor (pipelines | + control flow ; && ||). This is the working bash
replacement -- write a .nsh, run this, get output. Exits with the last line's exit code. (lines starting with # = comments)
expect_exit: 0 Sovereign: nx_shell_lib (+ nx_syscalls). NEVER-BRICK: spawns userspace, 0 firmware.
dependencies 2 imports · 0 importers
imports: nx_shell_lib.nxnx_syscalls.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| 7 | const K_MAGIC_65536: i64 = 65536 |
| 8 | const K_MAGIC_4096: i64 = 4096 |
functions
| 10 | func run_line(buf: *u8, start: i64, end: i64, line: *u8) -> i64 |
| 19 | func main(argc: i64, argv: *i64) -> i64 |