unset shellopts when empty
This commit is contained in:
1 parent
2c3cd35a5d
commit
7dfdcb51c0
1 file changed
+4
@@ -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 {
|
||||||
|
|||||||
Reference in new issue
Block a user