I was doing some extensive testing of my program, and noticed that in the sample solution, unused commands seemed to be affecting the output in some larger command files. I tried downsizing the commands file to see if I could replicate the issue but didn't really work so here's the example:
shell
10usecs spawn cal
17usecs write usb3.1 290192B
20usecs wait
30usecs wait
32usecs sleep 1232usecs
50usecs spawn Jo
60usecs exit
cal
5usecs spawn hut
10usecs read ssd 281B
20usecs wait
40usecs exit
hut
10usecs spawn mot
20usecs write hd 29013B
30usecs wait
50usecs exit
mot
5usecs spawn pwd
15usecs sleep 10usecs
20usecs wait
40usecs exit
pwd
5usecs spawn cd
7usecs write terminal 1233922B
20usecs spawn PP
30usecs spawn Jo
40usecs spawn OwO
50usecs wait
60usecs exit
cd
9usecs spawn Jo
11usecs sleep 10usecs
14usecs wait
30usecs spawn Jo
50usecs sleep 213usecs
60usecs spawn UwU
70usecs spawn OwO
80usecs exit
Jo
2usecs read terminal 4B
50usecs spawn PP
100usecs exit
UwU
10usecs read usb3.1 342212B
20usecs write usb3.1 324123B
30usecs spawn Jo
50usecs exit
OwO
40usecs write ssd 3902B
60usecs spawn UwU
100usecs wait
150usecs sleep 1023usecs
200usecs exit
PP
100usecs read terminal 10B
200usecs wait
210usecs sleep 1232usecs
300usecs read usb3.1 32B
500usecs exit
FF
200usecs spawn poopoo
210usecs wait
230usecs exit
poopoo
100usecs sleep 21312usecs
200usecs exit
The last 2 commands FF and poopoo are never spawned, so whether or not they are there shouldn't affect the output. The attachment below shows how the sample solution produces different outputs depending on whether the last 2 commands are in the command file.
The first output is my program's output, the second output is the sample solution output of the exact same file. Third output is the sample solution output when the last 2 commands are deleted from the commands file.