A typed word had ".sbx" pasted on the end of it before anything went looking, which is why "notes.txt" sent the shell after a notes.txt.sbx that was never going to exist, and why a script could only be started with "do". The extension was what made a file reachable by name. Now the word as typed is asked for first and the word with the extension on it only after that misses. What comes back is dispatched on what is inside it: SBEX loads and starts, "#!" is read as lines. The loader already refuses anything that is not SBEX and the script reader already refuses anything without the shebang, so the two kinds of runnable file turn each other away and neither has to know the other exists. The suffix can only ever be a second guess, so a file that is really there always beats one that would have to be invented and every program already on a disk still starts by the short name people type for it. It costs a second walk of each directory when a word is not found in it. Tab completion offers a file under the name it actually has, and the suffix stripper is gone: a first word can now be any file at all, and offering only the ones ending .sbx would hide the scripts. The video capture windows moved out a hundred thousand cycles, because starting Lander now walks four names where it walked two. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01E2JrLzFvuFX9fgi1LDRjrW
19 lines
386 B
Plaintext
19 lines
386 B
Plaintext
CosmOS
|
|
> Cr[2;3HCrash.sbx [2;13Hzz
|
|
Crash opcode | service | bank | device | blind
|
|
finished
|
|
> Sa[5;3HSay.sbx[5;10Hzz
|
|
I do not know: Say.sbxzz
|
|
> cd Ap[7;3Hcd Apps/[7;11H
|
|
/Apps> echo where am I
|
|
where am I
|
|
/Apps> cd /
|
|
> echo Apps/S[11;3Hecho Apps/Say.sbx [11;21H
|
|
Apps/Say.sbx
|
|
> echo /Apps/C[13;3Hecho /Apps/Copy.sbx [13;23H
|
|
/Apps/Copy.sbx
|
|
> exit
|
|
halted
|
|
Execution halted.
|
|
[exit 0]
|