Closed Flipp3rrr closed 5 years ago
Please post this type of question (here)[https://forums.computercraft.cc/index.php?board=13.0] before opening a new issue.
To expand on Jason's comment, this is a bug in your code. The message means there's a syntax error in your code.
If you look at line 7 of your terminal file, you have if input = "exit" do
. This should be if input = "exit" then
.
@JasonTheKitten The explanation at the wiki said this is correct so I thought it was a bug. That's why I posted it but I found out the os.run()
wasn't the problem. Sorry.
@SquidDev I changed the program, it's now:
print("Starting FlipOS shell...")
local termActive = true
while termActive do
input = read()
if input = "exit" then
termActive = false
end
end
But this still gives the same problem!
input=="exit", two =s
Shit, sorry.
As said in the title the command
os.run({}, "system/terminal")
returns the errorbios:14: [string "terminal"]:7: 'then' expected
, while at the wiki the same command is used. Is this a problem with my code or with ComputerCraft?Here's the full script:
And here's the script I'm trying to run: