2
2
mirror of https://github.com/Hilbis/Hilbish synced 2025-05-12 15:23:23 +00:00

Merge 22ebf1fa2353d7c2d2b095ddc491d6eeb20e79dc into bfa3b55542e35a4cea7e8acc7d0362c0c92c614d

This commit is contained in:
sammyette 2024-07-19 13:55:02 +00:00 committed by GitHub
commit 58e17d8556
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View File

@ -269,8 +269,6 @@ func execCommand(cmd string, strms *streams) (io.Writer, io.Writer, error) {
return nil, nil, err
}
runner, _ := interp.New()
if strms == nil {
strms = &streams{}
}

View File

@ -21,6 +21,7 @@ import (
"github.com/pborman/getopt"
"github.com/maxlandon/readline"
"golang.org/x/term"
"mvdan.cc/sh/v3/interp"
)
var (
@ -37,9 +38,11 @@ var (
cmds *commander.Commander
defaultConfPath string
defaultHistPath string
runner *interp.Runner
)
func main() {
runner, _ = interp.New()
curuser, _ = user.Current()
homedir := curuser.HomeDir
confDir, _ = os.UserConfigDir()