Skip to content

Commit

Permalink
Makes .SHELL available for read (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
TekWizely committed Jan 3, 2020
1 parent e466d2a commit 5eda761
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/ast/ast.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ import (
//
func ProcessAST(ast *Ast) *runfile.Runfile {
rf := runfile.NewRunfile()
// Seed defaults
//
rf.Scope.PutAttr(".SHELL", config.DefaultShell)
for _, n := range ast.nodes {
n.Apply(rf)
}
Expand Down

0 comments on commit 5eda761

Please sign in to comment.