move to test folder and fix import bug in shell

This commit is contained in:
2023-03-20 00:17:43 +00:00
parent b56c1fc485
commit 4a320008b2
9 changed files with 37 additions and 8 deletions

View File

@@ -107,7 +107,11 @@ func importMod(realpath string, origin string, main bool) (ArObject, ArErr) {
return ArObject{}, translationerr
}
ArgsArArray := []any{}
for _, arg := range Args[1:] {
withoutarfile := []string{}
if len(Args) > 1 {
withoutarfile = Args[1:]
}
for _, arg := range withoutarfile {
ArgsArArray = append(ArgsArArray, arg)
}
global := newscope()