stdlib Call, fg, bg, $, and cd functions. wow
This commit is contained in:
parent
94c9b2beba
commit
af184d9176
6 changed files with 272 additions and 33 deletions
14
cmd/repl.go
14
cmd/repl.go
|
|
@ -109,12 +109,16 @@ func main() {
|
|||
}
|
||||
|
||||
result, unwrap := userInput.Eval(funcs, vars)
|
||||
if unwrap {
|
||||
result = result.Inner.(*ast.Token)
|
||||
}
|
||||
for i := result; i != nil; i = i.Next {
|
||||
fmt.Printf(i.String() + " ")
|
||||
if result != nil {
|
||||
if result.Tag == ast.LIST && unwrap {
|
||||
result = result.Inner.(*ast.Token)
|
||||
}
|
||||
|
||||
for i := result; i != nil; i = i.Next {
|
||||
fmt.Printf(i.String() + " ")
|
||||
}
|
||||
}
|
||||
|
||||
fmt.Printf("\n")
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue