diff options
Diffstat (limited to 'cmds/cmds.go')
-rw-r--r-- | cmds/cmds.go | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/cmds/cmds.go b/cmds/cmds.go index 0cfee5e..f5b0081 100644 --- a/cmds/cmds.go +++ b/cmds/cmds.go @@ -1,7 +1,11 @@ // cmds: handles system commands package cmds -import "strings" +import ( + "strings" + + "gosh/global" +) // Eval: evaluates a provided string into a command // if it can't find the command or the arguments are incorrect @@ -31,6 +35,9 @@ func Eval(cmd string) error { printEnv() } break + case "test", "[": + global.ReturnCode = test(args) + break case "exit": if err := exit(args); err != nil { return err |