Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while not bExit do
- write( shell.dir() .. "> " )
- local sLine = read( nil, tCommandHistory )
- table.insert( tCommandHistory, sLine )
- runLine( sLine )
- end
- -- If this is the toplevel shell, run the shutdown program
- if parentShell == nil then
- if shell.resolveProgram( "shutdown" ) then
- shell.run( "shutdown" )
- end
- os.shutdown() -- just in case
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement