鏡像自
https://github.com/Hilbis/Hilbish
synced 2025-07-09 04:22:03 +00:00
fix: dont trim spaces on cd dir args
This commit is contained in:
父節點
afcc6fe63a
當前提交
630c0b0356
@ -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
|
||||
|
載入中…
x
新增問題並參考
Block a user