mirror of https://github.com/Hilbis/Hilbish
fix: dont trim spaces on cd dir args
parent
afcc6fe63a
commit
630c0b0356
|
@ -16,7 +16,7 @@ commander.register('cd', function (args)
|
||||||
path = path .. tostring(args[i]) .. ' '
|
path = path .. tostring(args[i]) .. ' '
|
||||||
end
|
end
|
||||||
path = path:gsub('$%$','\0'):gsub('${([%w_]+)}', os.getenv)
|
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
|
if path == '-' then
|
||||||
path = oldDir
|
path = oldDir
|
||||||
|
|
Loading…
Reference in New Issue