2
2
mirror of https://github.com/Hilbis/Hilbish synced 2025-04-01 19:23:24 +00:00

fix: dont trim spaces on cd dir args

This commit is contained in:
sammyette 2021-09-29 22:32:37 -04:00
parent afcc6fe63a
commit 630c0b0356
No known key found for this signature in database
GPG Key ID: 50EE40A2809851F5

View File

@ -16,7 +16,7 @@ commander.register('cd', function (args)
path = path .. tostring(args[i]) .. ' '
end
path = path:gsub('$%$','\0'):gsub('${([%w_]+)}', os.getenv)
:gsub('$([%w_]+)', os.getenv):gsub('%z','$'):gsub("%s+", "")
:gsub('$([%w_]+)', os.getenv):gsub('%z','$')
if path == '-' then
path = oldDir