This commit is contained in:
Aidan 2020-07-22 21:56:31 -07:00
parent 08bb7073cd
commit e098a8812c
No known key found for this signature in database
GPG key ID: 327711E983899316
2 changed files with 131 additions and 106 deletions

View file

@ -78,6 +78,9 @@ func main() {
ast.SyncTablesWithOSEnviron = true
ast.ExecWhenFuncUndef = true
stdlib.InitShellFeatures()
defer stdlib.TeardownShell()
vars, funcs := config.InitFromConfig(".shsrc")
debug_t := ast.GetVar("SH_DEBUG_MODE", vars)
if debug_t != nil {
@ -125,9 +128,6 @@ func main() {
defer histFile.Close()
}
stdlib.InitShellFeatures()
defer stdlib.TeardownShell()
for {
setLogLvl(vars)
var prePrompt string