summaryrefslogtreecommitdiff
path: root/cmds/cmds.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmds/cmds.go')
-rw-r--r--cmds/cmds.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmds/cmds.go b/cmds/cmds.go
index f5b0081..bc521dd 100644
--- a/cmds/cmds.go
+++ b/cmds/cmds.go
@@ -2,6 +2,7 @@
package cmds
import (
+ "fmt"
"strings"
"gosh/global"
@@ -37,6 +38,7 @@ func Eval(cmd string) error {
break
case "test", "[":
global.ReturnCode = test(args)
+ fmt.Println(global.ReturnCode)
break
case "exit":
if err := exit(args); err != nil {