mirror of https://github.com/Hilbis/Hilbish
Compare commits
6 Commits
bc4e0f835f
...
144c082d3e
Author | SHA1 | Date |
---|---|---|
sammyette | 144c082d3e | |
sammyette | 2c10be0102 | |
sammyette | 37bc018a13 | |
sammyette | 630c0b0356 | |
sammyette | afcc6fe63a | |
sammyette | a6a3962044 |
|
@ -35,9 +35,11 @@ func cd(L *lua.LState) int {
|
|||
switch e := err.(*os.PathError).Err.Error(); e {
|
||||
case "no such file or directory":
|
||||
LuaErr(L, 1)
|
||||
case "not a directory":
|
||||
LuaErr(L, 2)
|
||||
default:
|
||||
fmt.Printf("Found unhandled error case: %s", e)
|
||||
fmt.Printf("Report this at https://github.com/Hilbis/Hilbish/issues with the title being: \"fs: unahndled error case %s\", and show what caused it.\n", e)
|
||||
fmt.Printf("Found unhandled error case: %s\n", e)
|
||||
fmt.Printf("Report this at https://github.com/Rosettea/Hilbish/issues with the title being: \"fs: unhandled error case %s\", and show what caused it.\n", e)
|
||||
LuaErr(L, 213)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 004bca95d6e848f03e237c46127286f8f064bebc
|
||||
Subproject commit d200fca13df1c47e133b269420223d7e257dbc41
|
|
@ -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
|
||||
|
|
|
@ -4,7 +4,7 @@ package main
|
|||
|
||||
// String vars that are free to be changed at compile time
|
||||
var (
|
||||
requirePaths = `';./libs/?/init.lua;./?/init.lua;./?/?.lua'
|
||||
requirePaths = `';./libs/?/?.lua;./libs/?/init.lua;./?/init.lua;./?/?.lua'
|
||||
.. ';/usr/share/hilbish/libs/?/init.lua;'
|
||||
.. ';/usr/share/hilbish/libs/?/?.lua;'
|
||||
.. hilbish.home .. '/.local/share/hilbish/libs/?/init.lua;'
|
||||
|
|
Loading…
Reference in New Issue