feat(userspace): shell runs programs (ls, cat) via spawn w/ terminal+storage+args page; ext4 holes read as zeros; storage re-attach same buffer

This commit is contained in:
2026-10-27 17:22:08 +01:00
parent 0fd568cdad
commit c603a578c0
22 changed files with 396 additions and 66 deletions

7
disk/docs/shell.txt Normal file
View File

@@ -0,0 +1,7 @@
The shell runs a program by asking init to load it (init alone may
create processes), then gives the program the terminal as its output
and the storage server, writes its arguments onto a page it moves
into the program, starts it and waits for it to die.
Built-ins: help, echo, clear. Anything else is a program on disk:
`name args...` runs name.elf.

7
disk/readme.txt Normal file
View File

@@ -0,0 +1,7 @@
Welcome to k-os.
Every program here runs with only the capabilities it was given:
this file reached your screen because the shell handed `cat` the
terminal and the storage server, and nothing else.
Try: ls ls docs cat docs/shell.txt