fixed cd() a little
This commit is contained in:
parent
26d76abfa7
commit
4165f49396
@ -1,7 +1,7 @@
|
|||||||
function luash(si)
|
function luash(si)
|
||||||
spawn("lua shell",function()
|
spawn("lua shell",function()
|
||||||
function cd(p)
|
function cd(p)
|
||||||
os.setenv("PWD",fs.simplify((os.getenv("PWD") or "")..p))
|
os.setenv("PWD",fs.simplify((os.getenv("PWD") or "").."/"..p))
|
||||||
end
|
end
|
||||||
coroutine.yield()
|
coroutine.yield()
|
||||||
print(_OSVERSION..", "..string.format("%4d",computer.totalMemory()/1024).."K memory, "..string.format("%4d",computer.freeMemory()/1024).."K free")
|
print(_OSVERSION..", "..string.format("%4d",computer.totalMemory()/1024).."K memory, "..string.format("%4d",computer.freeMemory()/1024).."K free")
|
||||||
|
Loading…
Reference in New Issue
Block a user