unset shellopts when empty
This commit is contained in:
parent
2c3cd35a5d
commit
7dfdcb51c0
4
eval.go
4
eval.go
@ -310,6 +310,10 @@ func (e *setExpr) eval(app *app, args []string) {
|
|||||||
case "shell":
|
case "shell":
|
||||||
gOpts.shell = e.val
|
gOpts.shell = e.val
|
||||||
case "shellopts":
|
case "shellopts":
|
||||||
|
if e.val == "" {
|
||||||
|
gOpts.shellopts = nil
|
||||||
|
return
|
||||||
|
}
|
||||||
gOpts.shellopts = strings.Split(e.val, ":")
|
gOpts.shellopts = strings.Split(e.val, ":")
|
||||||
case "sortby":
|
case "sortby":
|
||||||
switch e.val {
|
switch e.val {
|
||||||
|
Loading…
Reference in New Issue
Block a user