add standard lua os methods, another fix for vfs links within links, allow write on urlfs mounted files

This commit is contained in:
kepler155c@gmail.com
2020-05-17 19:36:33 -06:00
parent c7c594d6c3
commit a7e3318226
7 changed files with 64 additions and 39 deletions

View File

@@ -52,8 +52,8 @@ local function run(...)
loadFn = loadfile
end
local bill, err = loadFn(path, env)
if not bill then
local funkshun, err = loadFn(path, env)
if not funkshun then
error(err, -1)
end
@@ -68,7 +68,7 @@ local function run(...)
}
env[ "arg" ] = { [0] = path, table.unpack(args) }
local r = { bill(table.unpack(args)) }
local r = { funkshun(table.unpack(args)) }
tProgramStack[#tProgramStack] = nil
@@ -659,7 +659,7 @@ local function shellRead(history)
return entry.value or ''
end
local history = History.load('usr/.shell_history', 25)
local history = History.load('usr/.shell_history', 100)
term.setBackgroundColor(_colors.backgroundColor)
--term.clear()