Advertisement
makzlol

kernel.lua

Mar 21st, 2025
244
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.39 KB | Gaming | 0 0
  1. -- kernel.lua
  2. local function runShell()
  3.     while true do
  4.         write("> ")
  5.         local command = read()
  6.         if command == "exit" then
  7.             break
  8.         else
  9.             local result = os.run({}, "/bin/" .. command .. ".lua")
  10.             if not result then
  11.                 print("Команда не найдена!")
  12.             end
  13.         end
  14.     end
  15. end
  16.  
  17. runShell()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement