MC 1.7.10
Forge 10.13.2.1230
CC 1.74
DESCRIPTION:
CraftOS 1.7 shuts down whenever I type the word "type", followed by a space.
EXPECTED RESULTS:
Autocomplete guessing the first file/dir (".", meaning self) in the current directory
REPRODUCTION STEPS:
- Open the gui of any of these fine devices.
- Type in "type " (with the space but no need for enter)
- Watch the shell crash and the OS shut down.
SCREENSHOT:
http://imgur.com/nRmCWyq
POSSIBLE CAUSE:
Error on line 247 in bios.lua?
EDIT:
Manual debugging ftw. The row 247 of bios.lua contains the following:
tCompletions = _fnComplete( sLine )
The only call I see there is _fnComplete, which for some reason is nil for the "type" command only. The weirdest is the fact that the line just above it checks if _fnComplete exists, like this:
if _fnComplete and nPos == string.len(sLine) then
Also note that this is from the built-in "read" function, and _fnComplete is supposed to be the autocomplete function. I also dug in /rom/startup and … oh no…….. there's a…. TYPO!!! QUICK! TELL DAN THAT /ROM/STARTUP:184 IS SUPPOSED TO BE
shell.setCompletionFunction( "rom/programs/type", completeEither )
(or just let everyone use a