Operating system for OpenComputers
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
424B

  1. local shenv = {}
  2. setmetatable(shenv,{__index=function(_,k) if _G[k] then return _G[k] elseif fs.exists("/boot/exec/"..k..".lua") then return loadfile("/boot/exec/"..k..".lua") end end})
  3. print(_VERSION)
  4. while true do
  5. io.write((os.getenv("PWD") or _VERSION).."> ")
  6. tResult = {pcall(load(io.read(),"shell","t",shenv))}
  7. if tResult[1] == true then table.remove(tResult,1) end
  8. for k,v in pairs(tResult) do
  9. print(v)
  10. end
  11. end