fixed shell.setPath(), closes #53

This commit is contained in:
Florian Nücke 2014-01-04 00:20:40 +01:00
parent 969181a286
commit 27316ff8c2

View File

@ -84,7 +84,7 @@ end
function shell.setPath(value)
checkArg(1, value, "string")
path = {}
for p in string:gmatch(value, "[^:]") do
for p in string.gmatch(value, "[^:]+") do
p = fs.canonical(text.trim(p))
if unicode.sub(p, 1, 1) ~= "/" then
p = "/" .. p