Files
SplitBit-Emulator/Tests/expected/cosmosTree.out
T
AnachronautandClaude Opus 5 afda6ca83b Finishing says nothing, which is what finishing looks like
The shell printed "finished" every time a program gave the machine back.
That made sense when starting a program and getting the machine back was
most of what the machine did and the prompt was the only other thing on
the screen. Under a listing, between two commands, it is noise.

And it was printed whatever the program made of it, so a program that had
just explained what went wrong was answered with the word "finished" -
"there is no such directory: nowhere" and then, immediately, "finished".

The prompt coming back is what says a program is over. It is the same
argument osLastStatus is made of: a program that failed has already said
so in words, and anything the shell adds beside that is the shell talking
over it. A program that FAULTED still says so, because the fault screen
printed in red above and a program that is gone should not look like one
that ended.

A NEWLINE ONLY IF ONE IS WANTED. A program that stopped part way along a
line would leave the prompt sitting in the middle of its last output,
which the word used to prevent by accident. The console knows which
column the cursor is in, so the shell asks - where a blank line printed
every time would be right about half of the time, and an empty directory
listed with ls would be followed by a blank line for no reason.

Fifty nine recorded sessions lose the word. Two of them move a cursor up
a row with it, which is the same fact seen from the screen.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01E2JrLzFvuFX9fgi1LDRjrW
2026-09-06 19:49:43 -04:00

49 lines
1008 B
Plaintext

CosmOS
> dir
Apps <dir>
rooted.txt 21
1 file, 1 directory
5 of 32 entries, 248 blocks free
> load /Apps/Say.sbx
loaded, starting at 5000
> run the shallow one
it says: the shallow one
> load /Apps/Deep/Say.sbx
loaded, starting at 5000
> run the deep one
Hello, World!
> load /Apps/./Deep/../Say.sbx
loaded, starting at 5000
> run the shallow one again
it says: the shallow one again
> load /Apps/Deep/../../Apps/./Deep/Say.sbx
loaded, starting at 5000
> run the deep one the long way round
Hello, World!
> load /rooted.txt/Say.sbx
no such file
> load /Apps/Missing/Say.sbx
no such file
> load /Apps
that is a directory
> load /Apps/abcdefghijklmnopqrstuvw
no such file
> load /
no such file
> load /Apps/Deep/../..
no such file
> delete /Apps
that is a directory
> delete /Apps/Deep/Say.sbx
gone
> dir
Apps <dir>
rooted.txt 21
1 file, 1 directory
4 of 32 entries, 249 blocks free
the longest run is 248
> exit
halted
Execution halted.
[exit 0]