Say.sbx has printed words since long before there were scripts, and is the wrong shape for one. It is a program: it has to be found on the disk, loaded and started, it prefixes what it was told with "it says:", and the system prints "finished" after it. Three lines of noise around one line of narration, and a load off the disk to produce them. echo is a command, so it costs a comparison. With nothing after it, a blank line - which is what anybody expects and is worth having to space a long script out. Not called "say", although that is the better word. Built-in commands are tried before the disk and always win, so a built-in say would shadow Say.sbx and quietly change what every existing script and test meant by it. Also puts "do" in the help, which the commit that added it forgot, and splits the help text: the new lines pushed it over the assembler's 255 character limit for one string. That failure was hidden for a few minutes by a 'make' whose errors were going to /dev/null - the build kept the disk it already had, and the machine cheerfully reported "I do not know: echo" from a system assembled before echo existed. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01E2JrLzFvuFX9fgi1LDRjrW
33 lines
1.0 KiB
Plaintext
33 lines
1.0 KiB
Plaintext
CosmOS
|
|
> dir list what is on the disk
|
|
load <file> read a program off the disk
|
|
run [words] start what was loaded, and tell it those words
|
|
<name> [words] look where you are and then in /Apps, and start that
|
|
cd [path] go to a directory, or to the root with nothing after it
|
|
mkdir <path> make a directory
|
|
rmdir <path> remove an empty one
|
|
do <file> run the lines in a file, which must start with #!
|
|
echo [words] say them
|
|
delete <file> take it off the disk
|
|
rename <file> <to> call it something else
|
|
monitor look at memory, change it, and jump into it
|
|
help this
|
|
exit stop, or leave the monitor if you are in it
|
|
> greeting.txt 17
|
|
filler1.txt 8
|
|
filler2.txt 8
|
|
filler3.txt 8
|
|
filler4.txt 8
|
|
filler5.txt 8
|
|
filler6.txt 8
|
|
filler7.txt 8
|
|
filler8.txt 8
|
|
across.txt 700
|
|
empty.txt 0
|
|
aName22CharactersLong! 22
|
|
12 files
|
|
> > I do not know: frobnicate
|
|
> halted
|
|
Execution halted.
|
|
[exit 0]
|