unset shellopts when empty

This commit is contained in:
Gokcehan 2021-02-21 19:21:06 +03:00
parent 2c3cd35a5d
commit 7dfdcb51c0

View File

@ -310,6 +310,10 @@ func (e *setExpr) eval(app *app, args []string) {
case "shell":
gOpts.shell = e.val
case "shellopts":
if e.val == "" {
gOpts.shellopts = nil
return
}
gOpts.shellopts = strings.Split(e.val, ":")
case "sortby":
switch e.val {