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
|
|
@ -54,14 +54,16 @@ func l_append(input *ast.Token, vars ast.VarTable, funcs ast.FuncTable) *ast.Tok
|
|||
iter := &i
|
||||
if *iter == nil {
|
||||
src.Inner = input.Next
|
||||
return src
|
||||
}
|
||||
src.Next = nil
|
||||
|
||||
for (*iter).Next != nil {
|
||||
iter = &((*iter).Next)
|
||||
} else {
|
||||
for (*iter).Next != nil {
|
||||
iter = &((*iter).Next)
|
||||
}
|
||||
|
||||
(*iter).Next = input.Next
|
||||
input.Next = nil
|
||||
}
|
||||
(*iter).Next = input.Next
|
||||
input.Next = nil
|
||||
|
||||
return src
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue