(command.CommandList
  children: [
    (command.AndOr
      children: [
        (command.Simple
          blame_tok: <Id.Lit_LBracket '['>
          more_env: []
          words: [
            {<Id.Lit_LBracket '['>}
            {
              (BracedVarSub
                left: <Id.Left_DollarBrace '${'>
                token: <Id.VSub_Name ENVIRONMENT_SH>
                var_name: ENVIRONMENT_SH
                suffix_op: (suffix_op.Unary op:<Id.VTest_Plus _> arg_word:{<isset>})
                right: <Id.Right_DollarBrace '}'>
              )
            }
            {<Id.Lit_RBracket ']'>}
          ]
          redirects: []
          do_fork: T
        )
        (command.ControlFlow keyword:<Id.ControlFlow_Return return>)
      ]
      ops: [<Id.Op_DAmp _>]
    )
    (command.Simple
      blame_tok: <declare>
      more_env: []
      words: [{<declare>} {<-g>} {<Id.Lit_VarLike 'ENVIRONMENT_SH='> <true>}]
      redirects: []
      do_fork: T
    )
    (command.Simple
      blame_tok: <.>
      more_env: []
      words: [
        {<.>}
        {
          (BracedVarSub
            left: <Id.Left_DollarBrace '${'>
            token: <Id.VSub_Name BASH_SOURCE>
            var_name: BASH_SOURCE
            suffix_op: 
              (suffix_op.Unary
                op: <Id.VOp1_Percent '%'>
                arg_word: {<Id.Lit_Slash '/'> <Id.Lit_Other '*'>}
              )
            right: <Id.Right_DollarBrace '}'>
          ) <'/common.sh'>
        }
      ]
      redirects: []
      do_fork: T
    )
    (command.Simple
      blame_tok: <.>
      more_env: []
      words: [
        {<.>}
        {
          (BracedVarSub
            left: <Id.Left_DollarBrace '${'>
            token: <Id.VSub_Name BASH_SOURCE>
            var_name: BASH_SOURCE
            suffix_op: 
              (suffix_op.Unary
                op: <Id.VOp1_Percent '%'>
                arg_word: {<Id.Lit_Slash '/'> <Id.Lit_Other '*'>}
              )
            right: <Id.Right_DollarBrace '}'>
          ) <'/variables.sh'>
        }
      ]
      redirects: []
      do_fork: T
    )
    (command.Simple
      blame_tok: <.>
      more_env: []
      words: [
        {<.>}
        {
          (BracedVarSub
            left: <Id.Left_DollarBrace '${'>
            token: <Id.VSub_Name BASH_SOURCE>
            var_name: BASH_SOURCE
            suffix_op: 
              (suffix_op.Unary
                op: <Id.VOp1_Percent '%'>
                arg_word: {<Id.Lit_Slash '/'> <Id.Lit_Other '*'>}
              )
            right: <Id.Right_DollarBrace '}'>
          ) <'/variables.arraylist.sh'>
        }
      ]
      redirects: []
      do_fork: T
    )
    (command.Simple
      blame_tok: <.>
      more_env: []
      words: [
        {<.>}
        {
          (BracedVarSub
            left: <Id.Left_DollarBrace '${'>
            token: <Id.VSub_Name BASH_SOURCE>
            var_name: BASH_SOURCE
            suffix_op: 
              (suffix_op.Unary
                op: <Id.VOp1_Percent '%'>
                arg_word: {<Id.Lit_Slash '/'> <Id.Lit_Other '*'>}
              )
            right: <Id.Right_DollarBrace '}'>
          ) <'/variables.linkedlist.sh'>
        }
      ]
      redirects: []
      do_fork: T
    )
    (command.Simple
      blame_tok: <.>
      more_env: []
      words: [
        {<.>}
        {
          (BracedVarSub
            left: <Id.Left_DollarBrace '${'>
            token: <Id.VSub_Name BASH_SOURCE>
            var_name: BASH_SOURCE
            suffix_op: 
              (suffix_op.Unary
                op: <Id.VOp1_Percent '%'>
                arg_word: {<Id.Lit_Slash '/'> <Id.Lit_Other '*'>}
              )
            right: <Id.Right_DollarBrace '}'>
          ) <'/variables.stack.sh'>
        }
      ]
      redirects: []
      do_fork: T
    )
    (command.Simple
      blame_tok: <.>
      more_env: []
      words: [
        {<.>}
        {
          (BracedVarSub
            left: <Id.Left_DollarBrace '${'>
            token: <Id.VSub_Name BASH_SOURCE>
            var_name: BASH_SOURCE
            suffix_op: 
              (suffix_op.Unary
                op: <Id.VOp1_Percent '%'>
                arg_word: {<Id.Lit_Slash '/'> <Id.Lit_Other '*'>}
              )
            right: <Id.Right_DollarBrace '}'>
          ) <'/variables.queue.sh'>
        }
      ]
      redirects: []
      do_fork: T
    )
    (command.Simple
      blame_tok: <.>
      more_env: []
      words: [
        {<.>}
        {
          (BracedVarSub
            left: <Id.Left_DollarBrace '${'>
            token: <Id.VSub_Name BASH_SOURCE>
            var_name: BASH_SOURCE
            suffix_op: 
              (suffix_op.Unary
                op: <Id.VOp1_Percent '%'>
                arg_word: {<Id.Lit_Slash '/'> <Id.Lit_Other '*'>}
              )
            right: <Id.Right_DollarBrace '}'>
          ) <'/variables.map.sh'>
        }
      ]
      redirects: []
      do_fork: T
    )
    (command.Simple
      blame_tok: <declare>
      more_env: []
      words: [{<declare>} {<-g>} {<Id.Lit_VarLike 'ENVIRONMENT_DEBUG='> <0>}]
      redirects: []
      do_fork: T
    )
    (command.ShFunction
      keyword: <Id.KW_Function function>
      name_tok: <environment>
      name: 'environment::new'
      body: 
        (BraceGroup
          left: <Id.Lit_LBrace '{'>
          children: [
            (command.If
              if_kw: <Id.KW_If if>
              arms: [
                (IfArm
                  keyword: <Id.KW_If if>
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.Sentence
                          child: 
                            (command.DBracket
                              left: <Id.KW_DLeftBracket '[['>
                              expr: 
                                (bool_expr.Binary
                                  op_id: Id.BoolBinary_GlobDEqual
                                  left: {(${ Id.VSub_Name ENVIRONMENT_DEBUG)}
                                  right: {<1>}
                                )
                              right: <Id.Lit_DRightBracket ']]'>
                              redirects: []
                            )
                          terminator: <Id.Op_Semi _>
                        )
                      ]
                    )
                  then_kw: <Id.KW_Then then>
                  action: [
                    (command.Sentence
                      child: 
                        (command.Simple
                          blame_tok: <stderr>
                          more_env: []
                          words: [{<stderr>} {(DQ <'environment::new '> (${ Id.VSub_At '@'))}]
                          redirects: []
                          do_fork: T
                        )
                      terminator: <Id.Op_Semi _>
                    )
                  ]
                  spids: [180 195]
                )
              ]
              else_action: []
              fi_kw: <Id.KW_Fi fi>
              redirects: []
            )
            (command.Sentence
              child: 
                (command.Simple
                  blame_tok: <variable>
                  more_env: []
                  words: [
                    {<variable> <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <LinkedList> <Id.Lit_Colon ':'> 
                      <Id.Lit_Colon ':'> <new>
                    }
                  ]
                  redirects: []
                  do_fork: T
                )
              terminator: <Id.Op_Semi _>
            )
            (command.ShAssignment
              left: <Id.Lit_VarLike 'env='>
              pairs: [
                (AssignPair
                  left: <Id.Lit_VarLike 'env='>
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'env='> name:env)
                  op: assign_op.Equal
                  rhs: {(DQ (${ Id.VSub_Name RESULT))}
                )
              ]
              redirects: []
            )
            (command.Simple
              blame_tok: <variable>
              more_env: []
              words: [
                {<variable> <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <Map> <Id.Lit_Colon ':'> 
                  <Id.Lit_Colon ':'> <new>
                }
              ]
              redirects: []
              do_fork: T
            )
            (command.Simple
              blame_tok: <variable>
              more_env: []
              words: [
                {<variable> <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <LinkedList> <Id.Lit_Colon ':'> 
                  <Id.Lit_Colon ':'> <prepend>
                }
                {(DQ (${ Id.VSub_Name env))}
                {(DQ (${ Id.VSub_Name RESULT))}
              ]
              redirects: []
              do_fork: T
            )
          ]
          redirects: []
          right: <Id.Lit_RBrace '}'>
        )
    )
    (command.ShFunction
      keyword: <Id.KW_Function function>
      name_tok: <environment>
      name: 'environment::pushScope'
      body: 
        (BraceGroup
          left: <Id.Lit_LBrace '{'>
          children: [
            (command.If
              if_kw: <Id.KW_If if>
              arms: [
                (IfArm
                  keyword: <Id.KW_If if>
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.Sentence
                          child: 
                            (command.DBracket
                              left: <Id.KW_DLeftBracket '[['>
                              expr: 
                                (bool_expr.Binary
                                  op_id: Id.BoolBinary_GlobDEqual
                                  left: {(${ Id.VSub_Name ENVIRONMENT_DEBUG)}
                                  right: {<1>}
                                )
                              right: <Id.Lit_DRightBracket ']]'>
                              redirects: []
                            )
                          terminator: <Id.Op_Semi _>
                        )
                      ]
                    )
                  then_kw: <Id.KW_Then then>
                  action: [
                    (command.Sentence
                      child: 
                        (command.Simple
                          blame_tok: <stderr>
                          more_env: []
                          words: [{<stderr>} {(DQ <'environment::pushScope '> (${ Id.VSub_At '@'))}]
                          redirects: []
                          do_fork: T
                        )
                      terminator: <Id.Op_Semi _>
                    )
                  ]
                  spids: [296 311]
                )
              ]
              else_action: []
              fi_kw: <Id.KW_Fi fi>
              redirects: []
            )
            (command.Simple
              blame_tok: <declare>
              more_env: []
              words: [{<declare>} {<Id.Lit_VarLike 'env='> (DQ (${ Id.VSub_Number 1))}]
              redirects: []
              do_fork: T
            )
            (command.Simple
              blame_tok: <variable>
              more_env: []
              words: [
                {<variable> <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <Map> <Id.Lit_Colon ':'> 
                  <Id.Lit_Colon ':'> <new>
                }
              ]
              redirects: []
              do_fork: T
            )
            (command.Simple
              blame_tok: <variable>
              more_env: []
              words: [
                {<variable> <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <LinkedList> <Id.Lit_Colon ':'> 
                  <Id.Lit_Colon ':'> <prepend>
                }
                {(DQ (${ Id.VSub_Name env))}
                {(DQ (${ Id.VSub_Name RESULT))}
              ]
              redirects: []
              do_fork: T
            )
            (command.ShAssignment
              left: <Id.Lit_VarLike 'RESULT='>
              pairs: [
                (AssignPair
                  left: <Id.Lit_VarLike 'RESULT='>
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'RESULT='> name:RESULT)
                  op: assign_op.Equal
                  rhs: {(DQ (${ Id.VSub_Name RESULT))}
                )
              ]
              redirects: []
            )
          ]
          redirects: []
          right: <Id.Lit_RBrace '}'>
        )
    )
    (command.ShFunction
      keyword: <Id.KW_Function function>
      name_tok: <environment>
      name: 'environment::popScope'
      body: 
        (BraceGroup
          left: <Id.Lit_LBrace '{'>
          children: [
            (command.If
              if_kw: <Id.KW_If if>
              arms: [
                (IfArm
                  keyword: <Id.KW_If if>
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.Sentence
                          child: 
                            (command.DBracket
                              left: <Id.KW_DLeftBracket '[['>
                              expr: 
                                (bool_expr.Binary
                                  op_id: Id.BoolBinary_GlobDEqual
                                  left: {(${ Id.VSub_Name ENVIRONMENT_DEBUG)}
                                  right: {<1>}
                                )
                              right: <Id.Lit_DRightBracket ']]'>
                              redirects: []
                            )
                          terminator: <Id.Op_Semi _>
                        )
                      ]
                    )
                  then_kw: <Id.KW_Then then>
                  action: [
                    (command.Sentence
                      child: 
                        (command.Simple
                          blame_tok: <stderr>
                          more_env: []
                          words: [{<stderr>} {(DQ <'environment::popScope '> (${ Id.VSub_At '@'))}]
                          redirects: []
                          do_fork: T
                        )
                      terminator: <Id.Op_Semi _>
                    )
                  ]
                  spids: [419 434]
                )
              ]
              else_action: []
              fi_kw: <Id.KW_Fi fi>
              redirects: []
            )
            (command.Simple
              blame_tok: <variable>
              more_env: []
              words: [
                {<variable> <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <LinkedList> <Id.Lit_Colon ':'> 
                  <Id.Lit_Colon ':'> <rest>
                }
                {(DQ ($ Id.VSub_Number 1))}
              ]
              redirects: []
              do_fork: T
            )
            (command.ShAssignment
              left: <Id.Lit_VarLike 'RESULT='>
              pairs: [
                (AssignPair
                  left: <Id.Lit_VarLike 'RESULT='>
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'RESULT='> name:RESULT)
                  op: assign_op.Equal
                  rhs: {(DQ (${ Id.VSub_Name RESULT))}
                )
              ]
              redirects: []
            )
          ]
          redirects: []
          right: <Id.Lit_RBrace '}'>
        )
    )
    (command.ShFunction
      keyword: <Id.KW_Function function>
      name_tok: <environment>
      name: 'environment::hasValue'
      body: 
        (BraceGroup
          left: <Id.Lit_LBrace '{'>
          children: [
            (command.If
              if_kw: <Id.KW_If if>
              arms: [
                (IfArm
                  keyword: <Id.KW_If if>
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.Sentence
                          child: 
                            (command.DBracket
                              left: <Id.KW_DLeftBracket '[['>
                              expr: 
                                (bool_expr.Binary
                                  op_id: Id.BoolBinary_GlobDEqual
                                  left: {(${ Id.VSub_Name ENVIRONMENT_DEBUG)}
                                  right: {<1>}
                                )
                              right: <Id.Lit_DRightBracket ']]'>
                              redirects: []
                            )
                          terminator: <Id.Op_Semi _>
                        )
                      ]
                    )
                  then_kw: <Id.KW_Then then>
                  action: [
                    (command.Sentence
                      child: 
                        (command.Simple
                          blame_tok: <stderr>
                          more_env: []
                          words: [{<stderr>} {(DQ <'environment::getValue '> (${ Id.VSub_At '@'))}]
                          redirects: []
                          do_fork: T
                        )
                      terminator: <Id.Op_Semi _>
                    )
                  ]
                  spids: [501 516]
                )
              ]
              else_action: []
              fi_kw: <Id.KW_Fi fi>
              redirects: []
            )
            (command.Simple
              blame_tok: <declare>
              more_env: []
              words: [{<declare>} {<Id.Lit_VarLike 'env='> (DQ (${ Id.VSub_Number 1))}]
              redirects: []
              do_fork: T
            )
            (command.Simple
              blame_tok: <declare>
              more_env: []
              words: [{<declare>} {<Id.Lit_VarLike 'name='> (DQ (${ Id.VSub_Number 2))}]
              redirects: []
              do_fork: T
            )
            (command.Simple
              blame_tok: <declare>
              more_env: []
              words: [{<declare>} {<scope>}]
              redirects: []
              do_fork: T
            )
            (command.Sentence
              child: 
                (command.Simple
                  blame_tok: <variable>
                  more_env: []
                  words: [
                    {<variable> <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <new>}
                    {<String>}
                    {(DQ (${ Id.VSub_Name name))}
                  ]
                  redirects: []
                  do_fork: T
                )
              terminator: <Id.Op_Semi _>
            )
            (command.Simple
              blame_tok: <declare>
              more_env: []
              words: [{<declare>} {<Id.Lit_VarLike 'keyToken='> (DQ (${ Id.VSub_Name RESULT))}]
              redirects: []
              do_fork: T
            )
            (command.Simple
              blame_tok: <declare>
              more_env: []
              words: [{<declare>} {<Id.Lit_VarLike 'currentEnv='> (DQ (${ Id.VSub_Name env))}]
              redirects: []
              do_fork: T
            )
            (command.WhileUntil
              keyword: <Id.KW_While while>
              cond: 
                (condition.Shell
                  commands: [
                    (command.Sentence
                      child: 
                        (command.Pipeline
                          negated: <Id.KW_Bang '!'>
                          children: [
                            (command.Simple
                              blame_tok: <variable>
                              more_env: []
                              words: [
                                {<variable> <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <LinkedList> 
                                  <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <isEmpty_c>
                                }
                                {(DQ (${ Id.VSub_Name currentEnv))}
                              ]
                              redirects: []
                              do_fork: T
                            )
                          ]
                          ops: []
                        )
                      terminator: <Id.Op_Semi _>
                    )
                  ]
                )
              body: 
                (command.DoGroup
                  left: <Id.KW_Do do>
                  children: [
                    (command.Simple
                      blame_tok: <variable>
                      more_env: []
                      words: [
                        {<variable> <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <LinkedList> 
                          <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <first>
                        }
                        {(DQ (${ Id.VSub_Name currentEnv))}
                      ]
                      redirects: []
                      do_fork: T
                    )
                    (command.ShAssignment
                      left: <Id.Lit_VarLike 'scope='>
                      pairs: [
                        (AssignPair
                          left: <Id.Lit_VarLike 'scope='>
                          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'scope='> name:scope)
                          op: assign_op.Equal
                          rhs: {(DQ (${ Id.VSub_Name RESULT))}
                        )
                      ]
                      redirects: []
                    )
                    (command.If
                      if_kw: <Id.KW_If if>
                      arms: [
                        (IfArm
                          keyword: <Id.KW_If if>
                          cond: 
                            (condition.Shell
                              commands: [
                                (command.Sentence
                                  child: 
                                    (command.Simple
                                      blame_tok: <variable>
                                      more_env: []
                                      words: [
                                        {<variable> <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <Map> 
                                          <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <containsKey_c>
                                        }
                                        {(DQ (${ Id.VSub_Name scope))}
                                        {(DQ (${ Id.VSub_Name name))}
                                      ]
                                      redirects: []
                                      do_fork: T
                                    )
                                  terminator: <Id.Op_Semi _>
                                )
                              ]
                            )
                          then_kw: <Id.KW_Then then>
                          action: [
                            (command.ControlFlow
                              keyword: <Id.ControlFlow_Return return>
                              arg_word: {<0>}
                            )
                          ]
                          spids: [641 665]
                        )
                      ]
                      else_action: []
                      fi_kw: <Id.KW_Fi fi>
                      redirects: []
                    )
                    (command.Simple
                      blame_tok: <variable>
                      more_env: []
                      words: [
                        {<variable> <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <LinkedList> 
                          <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <rest>
                        }
                        {(DQ (${ Id.VSub_Name currentEnv))}
                      ]
                      redirects: []
                      do_fork: T
                    )
                    (command.ShAssignment
                      left: <Id.Lit_VarLike 'currentEnv='>
                      pairs: [
                        (AssignPair
                          left: <Id.Lit_VarLike 'currentEnv='>
                          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'currentEnv='> name:currentEnv)
                          op: assign_op.Equal
                          rhs: {(DQ ($ Id.VSub_DollarName RESULT))}
                        )
                      ]
                      redirects: []
                    )
                  ]
                  right: <Id.KW_Done done>
                )
              redirects: []
            )
            (command.ControlFlow keyword:<Id.ControlFlow_Return return> arg_word:{<1>})
          ]
          redirects: []
          right: <Id.Lit_RBrace '}'>
        )
    )
    (command.ShFunction
      keyword: <Id.KW_Function function>
      name_tok: <environment>
      name: 'environment::getValue'
      body: 
        (BraceGroup
          left: <Id.Lit_LBrace '{'>
          children: [
            (command.If
              if_kw: <Id.KW_If if>
              arms: [
                (IfArm
                  keyword: <Id.KW_If if>
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.Sentence
                          child: 
                            (command.DBracket
                              left: <Id.KW_DLeftBracket '[['>
                              expr: 
                                (bool_expr.Binary
                                  op_id: Id.BoolBinary_GlobDEqual
                                  left: {(${ Id.VSub_Name ENVIRONMENT_DEBUG)}
                                  right: {<1>}
                                )
                              right: <Id.Lit_DRightBracket ']]'>
                              redirects: []
                            )
                          terminator: <Id.Op_Semi _>
                        )
                      ]
                    )
                  then_kw: <Id.KW_Then then>
                  action: [
                    (command.Sentence
                      child: 
                        (command.Simple
                          blame_tok: <stderr>
                          more_env: []
                          words: [{<stderr>} {(DQ <'environment::getValue '> (${ Id.VSub_At '@'))}]
                          redirects: []
                          do_fork: T
                        )
                      terminator: <Id.Op_Semi _>
                    )
                  ]
                  spids: [739 754]
                )
              ]
              else_action: []
              fi_kw: <Id.KW_Fi fi>
              redirects: []
            )
            (command.Simple
              blame_tok: <declare>
              more_env: []
              words: [{<declare>} {<Id.Lit_VarLike 'env='> (DQ (${ Id.VSub_Number 1))}]
              redirects: []
              do_fork: T
            )
            (command.Simple
              blame_tok: <declare>
              more_env: []
              words: [{<declare>} {<Id.Lit_VarLike 'name='> (DQ (${ Id.VSub_Number 2))}]
              redirects: []
              do_fork: T
            )
            (command.Simple
              blame_tok: <declare>
              more_env: []
              words: [{<declare>} {<scope>}]
              redirects: []
              do_fork: T
            )
            (command.Sentence
              child: 
                (command.Simple
                  blame_tok: <variable>
                  more_env: []
                  words: [
                    {<variable> <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <new>}
                    {<String>}
                    {(DQ (${ Id.VSub_Name name))}
                  ]
                  redirects: []
                  do_fork: T
                )
              terminator: <Id.Op_Semi _>
            )
            (command.Simple
              blame_tok: <declare>
              more_env: []
              words: [{<declare>} {<Id.Lit_VarLike 'keyToken='> (DQ (${ Id.VSub_Name RESULT))}]
              redirects: []
              do_fork: T
            )
            (command.Simple
              blame_tok: <declare>
              more_env: []
              words: [{<declare>} {<Id.Lit_VarLike 'currentEnv='> (DQ (${ Id.VSub_Name env))}]
              redirects: []
              do_fork: T
            )
            (command.WhileUntil
              keyword: <Id.KW_While while>
              cond: 
                (condition.Shell
                  commands: [
                    (command.Sentence
                      child: 
                        (command.Pipeline
                          negated: <Id.KW_Bang '!'>
                          children: [
                            (command.Simple
                              blame_tok: <variable>
                              more_env: []
                              words: [
                                {<variable> <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <LinkedList> 
                                  <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <isEmpty_c>
                                }
                                {(DQ (${ Id.VSub_Name currentEnv))}
                              ]
                              redirects: []
                              do_fork: T
                            )
                          ]
                          ops: []
                        )
                      terminator: <Id.Op_Semi _>
                    )
                  ]
                )
              body: 
                (command.DoGroup
                  left: <Id.KW_Do do>
                  children: [
                    (command.Simple
                      blame_tok: <variable>
                      more_env: []
                      words: [
                        {<variable> <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <LinkedList> 
                          <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <first>
                        }
                        {(DQ (${ Id.VSub_Name currentEnv))}
                      ]
                      redirects: []
                      do_fork: T
                    )
                    (command.ShAssignment
                      left: <Id.Lit_VarLike 'scope='>
                      pairs: [
                        (AssignPair
                          left: <Id.Lit_VarLike 'scope='>
                          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'scope='> name:scope)
                          op: assign_op.Equal
                          rhs: {(DQ (${ Id.VSub_Name RESULT))}
                        )
                      ]
                      redirects: []
                    )
                    (command.If
                      if_kw: <Id.KW_If if>
                      arms: [
                        (IfArm
                          keyword: <Id.KW_If if>
                          cond: 
                            (condition.Shell
                              commands: [
                                (command.Sentence
                                  child: 
                                    (command.Simple
                                      blame_tok: <variable>
                                      more_env: []
                                      words: [
                                        {<variable> <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <Map> 
                                          <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <containsKey_c>
                                        }
                                        {(DQ (${ Id.VSub_Name scope))}
                                        {(DQ (${ Id.VSub_Name name))}
                                      ]
                                      redirects: []
                                      do_fork: T
                                    )
                                  terminator: <Id.Op_Semi _>
                                )
                              ]
                            )
                          then_kw: <Id.KW_Then then>
                          action: [
                            (command.Simple
                              blame_tok: <variable>
                              more_env: []
                              words: [
                                {<variable> <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <Map> 
                                  <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <get>
                                }
                                {(DQ (${ Id.VSub_Name scope))}
                                {(DQ (${ Id.VSub_Name name))}
                              ]
                              redirects: []
                              do_fork: T
                            )
                            (command.ControlFlow
                              keyword: <Id.ControlFlow_Return return>
                            )
                          ]
                          spids: [879 903]
                        )
                      ]
                      else_action: []
                      fi_kw: <Id.KW_Fi fi>
                      redirects: []
                    )
                    (command.Simple
                      blame_tok: <variable>
                      more_env: []
                      words: [
                        {<variable> <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <LinkedList> 
                          <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <rest>
                        }
                        {(DQ (${ Id.VSub_Name currentEnv))}
                      ]
                      redirects: []
                      do_fork: T
                    )
                    (command.ShAssignment
                      left: <Id.Lit_VarLike 'currentEnv='>
                      pairs: [
                        (AssignPair
                          left: <Id.Lit_VarLike 'currentEnv='>
                          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'currentEnv='> name:currentEnv)
                          op: assign_op.Equal
                          rhs: {(DQ ($ Id.VSub_DollarName RESULT))}
                        )
                      ]
                      redirects: []
                    )
                  ]
                  right: <Id.KW_Done done>
                )
              redirects: []
            )
            (command.Simple
              blame_tok: <variable>
              more_env: []
              words: [
                {<variable> <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <value>}
                {($ Id.VSub_DollarName name)}
              ]
              redirects: []
              do_fork: T
            )
            (command.Simple
              blame_tok: <stderr>
              more_env: []
              words: [
                {<stderr>}
                {
                  (DQ <'Variable ['> (${ Id.VSub_Name name) <'='> (${ Id.VSub_Name RESULT) 
                    <'] not found in current environment'>
                  )
                }
              ]
              redirects: []
              do_fork: T
            )
            (command.ControlFlow keyword:<Id.ControlFlow_Exit exit> arg_word:{<1>})
          ]
          redirects: []
          right: <Id.Lit_RBrace '}'>
        )
    )
    (command.ShFunction
      keyword: <Id.KW_Function function>
      name_tok: <environment>
      name: 'environment::setVariable'
      body: 
        (BraceGroup
          left: <Id.Lit_LBrace '{'>
          children: [
            (command.If
              if_kw: <Id.KW_If if>
              arms: [
                (IfArm
                  keyword: <Id.KW_If if>
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.Sentence
                          child: 
                            (command.DBracket
                              left: <Id.KW_DLeftBracket '[['>
                              expr: 
                                (bool_expr.Binary
                                  op_id: Id.BoolBinary_GlobDEqual
                                  left: {(${ Id.VSub_Name ENVIRONMENT_DEBUG)}
                                  right: {<1>}
                                )
                              right: <Id.Lit_DRightBracket ']]'>
                              redirects: []
                            )
                          terminator: <Id.Op_Semi _>
                        )
                      ]
                    )
                  then_kw: <Id.KW_Then then>
                  action: [
                    (command.Sentence
                      child: 
                        (command.Simple
                          blame_tok: <stderr>
                          more_env: []
                          words: [{<stderr>} {(DQ <'environment::setVariable '> (${ Id.VSub_At '@'))}]
                          redirects: []
                          do_fork: T
                        )
                      terminator: <Id.Op_Semi _>
                    )
                  ]
                  spids: [1028 1043]
                )
              ]
              else_action: []
              fi_kw: <Id.KW_Fi fi>
              redirects: []
            )
            (command.Simple
              blame_tok: <declare>
              more_env: []
              words: [{<declare>} {<Id.Lit_VarLike 'env='> (DQ (${ Id.VSub_Number 1))}]
              redirects: []
              do_fork: T
            )
            (command.Simple
              blame_tok: <declare>
              more_env: []
              words: [{<declare>} {<Id.Lit_VarLike 'keyToken='> (DQ (${ Id.VSub_Number 2))}]
              redirects: []
              do_fork: T
            )
            (command.Simple
              blame_tok: <declare>
              more_env: []
              words: [{<declare>} {<Id.Lit_VarLike 'valueToken='> (DQ (${ Id.VSub_Number 3))}]
              redirects: []
              do_fork: T
            )
            (command.Simple
              blame_tok: <variable>
              more_env: []
              words: [
                {<variable> <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <LinkedList> <Id.Lit_Colon ':'> 
                  <Id.Lit_Colon ':'> <first>
                }
                {(DQ (${ Id.VSub_Name env))}
              ]
              redirects: []
              do_fork: T
            )
            (command.Simple
              blame_tok: <declare>
              more_env: []
              words: [{<declare>} {<Id.Lit_VarLike 'scope='> (DQ (${ Id.VSub_Name RESULT))}]
              redirects: []
              do_fork: T
            )
            (command.Simple
              blame_tok: <declare>
              more_env: []
              words: [{<declare>} {<returnValue>}]
              redirects: []
              do_fork: T
            )
            (command.If
              if_kw: <Id.KW_If if>
              arms: [
                (IfArm
                  keyword: <Id.KW_If if>
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.Sentence
                          child: 
                            (command.Simple
                              blame_tok: <variable>
                              more_env: []
                              words: [
                                {<variable> <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <Map> 
                                  <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <containsKey_c>
                                }
                                {(DQ (${ Id.VSub_Name scope))}
                                {(DQ (${ Id.VSub_Name keyToken))}
                              ]
                              redirects: []
                              do_fork: T
                            )
                          terminator: <Id.Op_Semi _>
                        )
                      ]
                    )
                  then_kw: <Id.KW_Then then>
                  action: [
                    (command.ShAssignment
                      left: <Id.Lit_VarLike 'returnValue='>
                      pairs: [
                        (AssignPair
                          left: <Id.Lit_VarLike 'returnValue='>
                          lhs: 
                            (sh_lhs_expr.Name
                              left: <Id.Lit_VarLike 'returnValue='>
                              name: returnValue
                            )
                          op: assign_op.Equal
                          rhs: {<0>}
                        )
                      ]
                      redirects: []
                    )
                  ]
                  spids: [1122 1146]
                )
              ]
              else_kw: <Id.KW_Else else>
              else_action: [
                (command.ShAssignment
                  left: <Id.Lit_VarLike 'returnValue='>
                  pairs: [
                    (AssignPair
                      left: <Id.Lit_VarLike 'returnValue='>
                      lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'returnValue='> name:returnValue)
                      op: assign_op.Equal
                      rhs: {<1>}
                    )
                  ]
                  redirects: []
                )
              ]
              fi_kw: <Id.KW_Fi fi>
              redirects: []
            )
            (command.Simple
              blame_tok: <variable>
              more_env: []
              words: [
                {<variable> <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <Map> <Id.Lit_Colon ':'> 
                  <Id.Lit_Colon ':'> <put>
                }
                {(DQ (${ Id.VSub_Name scope))}
                {(DQ (${ Id.VSub_Name keyToken))}
                {(DQ (${ Id.VSub_Name valueToken))}
              ]
              redirects: []
              do_fork: T
            )
            (command.ShAssignment
              left: <Id.Lit_VarLike 'RESULT='>
              pairs: [
                (AssignPair
                  left: <Id.Lit_VarLike 'RESULT='>
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'RESULT='> name:RESULT)
                  op: assign_op.Equal
                  rhs: {(DQ )}
                )
              ]
              redirects: []
            )
            (command.ControlFlow
              keyword: <Id.ControlFlow_Return return>
              arg_word: {($ Id.VSub_DollarName returnValue)}
            )
          ]
          redirects: []
          right: <Id.Lit_RBrace '}'>
        )
    )
    (command.ShFunction
      keyword: <Id.KW_Function function>
      name_tok: <environment>
      name: 'environment::setOrReplaceVariable'
      body: 
        (BraceGroup
          left: <Id.Lit_LBrace '{'>
          children: [
            (command.If
              if_kw: <Id.KW_If if>
              arms: [
                (IfArm
                  keyword: <Id.KW_If if>
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.Sentence
                          child: 
                            (command.DBracket
                              left: <Id.KW_DLeftBracket '[['>
                              expr: 
                                (bool_expr.Binary
                                  op_id: Id.BoolBinary_GlobDEqual
                                  left: {(${ Id.VSub_Name ENVIRONMENT_DEBUG)}
                                  right: {<1>}
                                )
                              right: <Id.Lit_DRightBracket ']]'>
                              redirects: []
                            )
                          terminator: <Id.Op_Semi _>
                        )
                      ]
                    )
                  then_kw: <Id.KW_Then then>
                  action: [
                    (command.Sentence
                      child: 
                        (command.Simple
                          blame_tok: <stderr>
                          more_env: []
                          words: [
                            {<stderr>}
                            {(DQ <'environment::setOrReplaceVariable '> (${ Id.VSub_At '@'))}
                          ]
                          redirects: []
                          do_fork: T
                        )
                      terminator: <Id.Op_Semi _>
                    )
                  ]
                  spids: [1234 1249]
                )
              ]
              else_action: []
              fi_kw: <Id.KW_Fi fi>
              redirects: []
            )
            (command.Simple
              blame_tok: <declare>
              more_env: []
              words: [{<declare>} {<Id.Lit_VarLike 'env='> (DQ (${ Id.VSub_Number 1))}]
              redirects: []
              do_fork: T
            )
            (command.Simple
              blame_tok: <declare>
              more_env: []
              words: [{<declare>} {<Id.Lit_VarLike 'keyToken='> (DQ (${ Id.VSub_Number 2))}]
              redirects: []
              do_fork: T
            )
            (command.Simple
              blame_tok: <declare>
              more_env: []
              words: [{<declare>} {<Id.Lit_VarLike 'valueToken='> (DQ (${ Id.VSub_Number 3))}]
              redirects: []
              do_fork: T
            )
            (command.Simple
              blame_tok: <declare>
              more_env: []
              words: [{<declare>} {<scope>}]
              redirects: []
              do_fork: T
            )
            (command.Simple
              blame_tok: <declare>
              more_env: []
              words: [{<declare>} {<Id.Lit_VarLike 'currentEnv='> (DQ (${ Id.VSub_Name env))}]
              redirects: []
              do_fork: T
            )
            (command.WhileUntil
              keyword: <Id.KW_While while>
              cond: 
                (condition.Shell
                  commands: [
                    (command.Sentence
                      child: 
                        (command.Pipeline
                          negated: <Id.KW_Bang '!'>
                          children: [
                            (command.Simple
                              blame_tok: <variable>
                              more_env: []
                              words: [
                                {<variable> <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <LinkedList> 
                                  <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <isEmpty_c>
                                }
                                {(DQ (${ Id.VSub_Name currentEnv))}
                              ]
                              redirects: []
                              do_fork: T
                            )
                          ]
                          ops: []
                        )
                      terminator: <Id.Op_Semi _>
                    )
                  ]
                )
              body: 
                (command.DoGroup
                  left: <Id.KW_Do do>
                  children: [
                    (command.Simple
                      blame_tok: <variable>
                      more_env: []
                      words: [
                        {<variable> <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <LinkedList> 
                          <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <first>
                        }
                        {(DQ (${ Id.VSub_Name currentEnv))}
                      ]
                      redirects: []
                      do_fork: T
                    )
                    (command.ShAssignment
                      left: <Id.Lit_VarLike 'scope='>
                      pairs: [
                        (AssignPair
                          left: <Id.Lit_VarLike 'scope='>
                          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'scope='> name:scope)
                          op: assign_op.Equal
                          rhs: {(DQ (${ Id.VSub_Name RESULT))}
                        )
                      ]
                      redirects: []
                    )
                    (command.If
                      if_kw: <Id.KW_If if>
                      arms: [
                        (IfArm
                          keyword: <Id.KW_If if>
                          cond: 
                            (condition.Shell
                              commands: [
                                (command.Sentence
                                  child: 
                                    (command.Simple
                                      blame_tok: <variable>
                                      more_env: []
                                      words: [
                                        {<variable> <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <Map> 
                                          <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <containsKey_c>
                                        }
                                        {(DQ (${ Id.VSub_Name scope))}
                                        {(DQ (${ Id.VSub_Name keyToken))}
                                      ]
                                      redirects: []
                                      do_fork: T
                                    )
                                  terminator: <Id.Op_Semi _>
                                )
                              ]
                            )
                          then_kw: <Id.KW_Then then>
                          action: [
                            (command.Simple
                              blame_tok: <variable>
                              more_env: []
                              words: [
                                {<variable> <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <Map> 
                                  <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <put>
                                }
                                {(DQ (${ Id.VSub_Name scope))}
                                {(DQ (${ Id.VSub_Name keyToken))}
                                {(DQ (${ Id.VSub_Name valueToken))}
                              ]
                              redirects: []
                              do_fork: T
                            )
                            (command.ShAssignment
                              left: <Id.Lit_VarLike 'RESULT='>
                              pairs: [
                                (AssignPair
                                  left: <Id.Lit_VarLike 'RESULT='>
                                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'RESULT='> name:RESULT)
                                  op: assign_op.Equal
                                  rhs: {(DQ )}
                                )
                              ]
                              redirects: []
                            )
                            (command.ControlFlow
                              keyword: <Id.ControlFlow_Return return>
                              arg_word: {<0>}
                            )
                          ]
                          spids: [1358 1382]
                        )
                      ]
                      else_action: []
                      fi_kw: <Id.KW_Fi fi>
                      redirects: []
                    )
                    (command.Simple
                      blame_tok: <variable>
                      more_env: []
                      words: [
                        {<variable> <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <LinkedList> 
                          <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <rest>
                        }
                        {(DQ (${ Id.VSub_Name currentEnv))}
                      ]
                      redirects: []
                      do_fork: T
                    )
                    (command.ShAssignment
                      left: <Id.Lit_VarLike 'currentEnv='>
                      pairs: [
                        (AssignPair
                          left: <Id.Lit_VarLike 'currentEnv='>
                          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'currentEnv='> name:currentEnv)
                          op: assign_op.Equal
                          rhs: {(DQ ($ Id.VSub_DollarName RESULT))}
                        )
                      ]
                      redirects: []
                    )
                  ]
                  right: <Id.KW_Done done>
                )
              redirects: []
            )
            (command.Simple
              blame_tok: <variable>
              more_env: []
              words: [
                {<variable> <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <LinkedList> <Id.Lit_Colon ':'> 
                  <Id.Lit_Colon ':'> <first>
                }
                {(DQ (${ Id.VSub_Name env))}
              ]
              redirects: []
              do_fork: T
            )
            (command.ShAssignment
              left: <Id.Lit_VarLike 'scope='>
              pairs: [
                (AssignPair
                  left: <Id.Lit_VarLike 'scope='>
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'scope='> name:scope)
                  op: assign_op.Equal
                  rhs: {(DQ (${ Id.VSub_Name RESULT))}
                )
              ]
              redirects: []
            )
            (command.Simple
              blame_tok: <variable>
              more_env: []
              words: [
                {<variable> <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <Map> <Id.Lit_Colon ':'> 
                  <Id.Lit_Colon ':'> <put>
                }
                {(DQ (${ Id.VSub_Name scope))}
                {(DQ (${ Id.VSub_Name keyToken))}
                {(DQ (${ Id.VSub_Name valueToken))}
              ]
              redirects: []
              do_fork: T
            )
            (command.ShAssignment
              left: <Id.Lit_VarLike 'RESULT='>
              pairs: [
                (AssignPair
                  left: <Id.Lit_VarLike 'RESULT='>
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'RESULT='> name:RESULT)
                  op: assign_op.Equal
                  rhs: {(DQ )}
                )
              ]
              redirects: []
            )
            (command.ControlFlow keyword:<Id.ControlFlow_Return return> arg_word:{<1>})
          ]
          redirects: []
          right: <Id.Lit_RBrace '}'>
        )
    )
    (command.ShFunction
      keyword: <Id.KW_Function function>
      name_tok: <environment>
      name: 'environment::print'
      body: 
        (BraceGroup
          left: <Id.Lit_LBrace '{'>
          children: [
            (command.Simple
              blame_tok: <declare>
              more_env: []
              words: [{<declare>} {<Id.Lit_VarLike 'currentEnv='> (DQ (${ Id.VSub_Number 1))}]
              redirects: []
              do_fork: T
            )
            (command.Simple
              blame_tok: <echo>
              more_env: []
              words: [{<echo>} {(DQ <'Environment ['> (${ Id.VSub_Name currentEnv) <']'>)}]
              redirects: []
              do_fork: T
            )
            (command.WhileUntil
              keyword: <Id.KW_While while>
              cond: 
                (condition.Shell
                  commands: [
                    (command.Sentence
                      child: 
                        (command.Pipeline
                          negated: <Id.KW_Bang '!'>
                          children: [
                            (command.Simple
                              blame_tok: <variable>
                              more_env: []
                              words: [
                                {<variable> <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <LinkedList> 
                                  <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <isEmpty_c>
                                }
                                {(DQ (${ Id.VSub_Name currentEnv))}
                              ]
                              redirects: []
                              do_fork: T
                            )
                          ]
                          ops: []
                        )
                      terminator: <Id.Op_Semi _>
                    )
                  ]
                )
              body: 
                (command.DoGroup
                  left: <Id.KW_Do do>
                  children: [
                    (command.Simple
                      blame_tok: <variable>
                      more_env: []
                      words: [
                        {<variable> <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <LinkedList> 
                          <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <first>
                        }
                        {(DQ (${ Id.VSub_Name currentEnv))}
                      ]
                      redirects: []
                      do_fork: T
                    )
                    (command.Simple
                      blame_tok: <variable>
                      more_env: []
                      words: [
                        {<variable> <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <Map> <Id.Lit_Colon ':'> 
                          <Id.Lit_Colon ':'> <print>
                        }
                        {(DQ (${ Id.VSub_Name RESULT))}
                      ]
                      redirects: []
                      do_fork: T
                    )
                    (command.Simple
                      blame_tok: <variable>
                      more_env: []
                      words: [
                        {<variable> <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <LinkedList> 
                          <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <rest>
                        }
                        {(DQ (${ Id.VSub_Name currentEnv))}
                      ]
                      redirects: []
                      do_fork: T
                    )
                    (command.ShAssignment
                      left: <Id.Lit_VarLike 'currentEnv='>
                      pairs: [
                        (AssignPair
                          left: <Id.Lit_VarLike 'currentEnv='>
                          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'currentEnv='> name:currentEnv)
                          op: assign_op.Equal
                          rhs: {(DQ ($ Id.VSub_DollarName RESULT))}
                        )
                      ]
                      redirects: []
                    )
                  ]
                  right: <Id.KW_Done done>
                )
              redirects: []
            )
          ]
          redirects: []
          right: <Id.Lit_RBrace '}'>
        )
    )
    (command.If
      if_kw: <Id.KW_If if>
      arms: [
        (IfArm
          keyword: <Id.KW_If if>
          cond: 
            (condition.Shell
              commands: [
                (command.Sentence
                  child: 
                    (command.Simple
                      blame_tok: <Id.Lit_LBracket '['>
                      more_env: []
                      words: [
                        {<Id.Lit_LBracket '['>}
                        {($ Id.VSub_Number 0)}
                        {<Id.KW_Bang '!'> <Id.Lit_Equals '='>}
                        {($ Id.VSub_DollarName BASH_SOURCE)}
                        {<Id.Lit_RBracket ']'>}
                      ]
                      redirects: []
                      do_fork: T
                    )
                  terminator: <Id.Op_Semi _>
                )
              ]
            )
          then_kw: <Id.KW_Then then>
          action: [(command.ControlFlow keyword:<Id.ControlFlow_Return return>)]
          spids: [1635 1649]
        )
      ]
      else_action: []
      fi_kw: <Id.KW_Fi fi>
      redirects: []
    )
    (command.CommandList
      children: [
        (command.Sentence
          child: 
            (command.Simple
              blame_tok: <variable>
              more_env: []
              words: [
                {<variable> <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <new>}
                {<String>}
                {(DQ <'key one'>)}
              ]
              redirects: []
              do_fork: T
            )
          terminator: <Id.Op_Semi _>
        )
        (command.ShAssignment
          left: <Id.Lit_VarLike 'key1='>
          pairs: [
            (AssignPair
              left: <Id.Lit_VarLike 'key1='>
              lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'key1='> name:key1)
              op: assign_op.Equal
              rhs: {(${ Id.VSub_Name RESULT)}
            )
          ]
          redirects: []
        )
      ]
    )
    (command.CommandList
      children: [
        (command.Sentence
          child: 
            (command.Simple
              blame_tok: <variable>
              more_env: []
              words: [
                {<variable> <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <new>}
                {<String>}
                {(DQ <'value one'>)}
              ]
              redirects: []
              do_fork: T
            )
          terminator: <Id.Op_Semi _>
        )
        (command.ShAssignment
          left: <Id.Lit_VarLike 'value1='>
          pairs: [
            (AssignPair
              left: <Id.Lit_VarLike 'value1='>
              lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'value1='> name:value1)
              op: assign_op.Equal
              rhs: {(${ Id.VSub_Name RESULT)}
            )
          ]
          redirects: []
        )
      ]
    )
    (command.CommandList
      children: [
        (command.Sentence
          child: 
            (command.Simple
              blame_tok: <variable>
              more_env: []
              words: [
                {<variable> <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <new>}
                {<String>}
                {(DQ <'key two'>)}
              ]
              redirects: []
              do_fork: T
            )
          terminator: <Id.Op_Semi _>
        )
        (command.ShAssignment
          left: <Id.Lit_VarLike 'key2='>
          pairs: [
            (AssignPair
              left: <Id.Lit_VarLike 'key2='>
              lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'key2='> name:key2)
              op: assign_op.Equal
              rhs: {(${ Id.VSub_Name RESULT)}
            )
          ]
          redirects: []
        )
      ]
    )
    (command.CommandList
      children: [
        (command.Sentence
          child: 
            (command.Simple
              blame_tok: <variable>
              more_env: []
              words: [
                {<variable> <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <new>}
                {<String>}
                {(DQ <'value two'>)}
              ]
              redirects: []
              do_fork: T
            )
          terminator: <Id.Op_Semi _>
        )
        (command.ShAssignment
          left: <Id.Lit_VarLike 'value2='>
          pairs: [
            (AssignPair
              left: <Id.Lit_VarLike 'value2='>
              lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'value2='> name:value2)
              op: assign_op.Equal
              rhs: {(${ Id.VSub_Name RESULT)}
            )
          ]
          redirects: []
        )
      ]
    )
    (command.CommandList
      children: [
        (command.Sentence
          child: 
            (command.Simple
              blame_tok: <variable>
              more_env: []
              words: [
                {<variable> <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <new>}
                {<String>}
                {(DQ <'key three'>)}
              ]
              redirects: []
              do_fork: T
            )
          terminator: <Id.Op_Semi _>
        )
        (command.ShAssignment
          left: <Id.Lit_VarLike 'key3='>
          pairs: [
            (AssignPair
              left: <Id.Lit_VarLike 'key3='>
              lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'key3='> name:key3)
              op: assign_op.Equal
              rhs: {(${ Id.VSub_Name RESULT)}
            )
          ]
          redirects: []
        )
      ]
    )
    (command.CommandList
      children: [
        (command.Sentence
          child: 
            (command.Simple
              blame_tok: <variable>
              more_env: []
              words: [
                {<variable> <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <new>}
                {<String>}
                {(DQ <'value three'>)}
              ]
              redirects: []
              do_fork: T
            )
          terminator: <Id.Op_Semi _>
        )
        (command.ShAssignment
          left: <Id.Lit_VarLike 'value3='>
          pairs: [
            (AssignPair
              left: <Id.Lit_VarLike 'value3='>
              lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'value3='> name:value3)
              op: assign_op.Equal
              rhs: {(${ Id.VSub_Name RESULT)}
            )
          ]
          redirects: []
        )
      ]
    )
    (command.CommandList
      children: [
        (command.Sentence
          child: 
            (command.Simple
              blame_tok: <variable>
              more_env: []
              words: [
                {<variable> <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <new>}
                {<String>}
                {(DQ <'no such key'>)}
              ]
              redirects: []
              do_fork: T
            )
          terminator: <Id.Op_Semi _>
        )
        (command.ShAssignment
          left: <Id.Lit_VarLike 'keyUnknown='>
          pairs: [
            (AssignPair
              left: <Id.Lit_VarLike 'keyUnknown='>
              lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'keyUnknown='> name:keyUnknown)
              op: assign_op.Equal
              rhs: {(${ Id.VSub_Name RESULT)}
            )
          ]
          redirects: []
        )
      ]
    )
    (command.Simple
      blame_tok: <declare>
      more_env: []
      words: [{<declare>} {<env1>}]
      redirects: []
      do_fork: T
    )
    (command.Simple
      blame_tok: <declare>
      more_env: []
      words: [{<declare>} {<env2>}]
      redirects: []
      do_fork: T
    )
    (command.Simple
      blame_tok: <declare>
      more_env: []
      words: [{<declare>} {<env3>}]
      redirects: []
      do_fork: T
    )
    (command.CommandList
      children: [
        (command.Sentence
          child: 
            (command.Simple
              blame_tok: <environment>
              more_env: []
              words: [{<environment> <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <new>}]
              redirects: []
              do_fork: T
            )
          terminator: <Id.Op_Semi _>
        )
        (command.ShAssignment
          left: <Id.Lit_VarLike 'env1='>
          pairs: [
            (AssignPair
              left: <Id.Lit_VarLike 'env1='>
              lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'env1='> name:env1)
              op: assign_op.Equal
              rhs: {(DQ (${ Id.VSub_Name RESULT))}
            )
          ]
          redirects: []
        )
      ]
    )
    (command.Simple
      blame_tok: <environment>
      more_env: []
      words: [
        {<environment> <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <setVariable>}
        {(DQ (${ Id.VSub_Name env1))}
        {($ Id.VSub_DollarName key1)}
        {($ Id.VSub_DollarName value1)}
      ]
      redirects: []
      do_fork: T
    )
    (command.CommandList
      children: [
        (command.Sentence
          child: 
            (command.Simple
              blame_tok: <environment>
              more_env: []
              words: [
                {<environment> <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <getValue>}
                {(DQ (${ Id.VSub_Name env1))}
                {($ Id.VSub_DollarName key1)}
              ]
              redirects: []
              do_fork: T
            )
          terminator: <Id.Op_Semi _>
        )
        (command.Sentence
          child: 
            (command.Simple
              blame_tok: <variable>
              more_env: []
              words: [
                {<variable> <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <value>}
                {(DQ (${ Id.VSub_Name RESULT))}
              ]
              redirects: []
              do_fork: T
            )
          terminator: <Id.Op_Semi _>
        )
        (command.Simple
          blame_tok: <assert>
          more_env: []
          words: [
            {<assert> <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <equals>}
            {(DQ <'value one'>)}
            {(DQ (${ Id.VSub_Name RESULT))}
            {(DQ <'Single variable'>)}
          ]
          redirects: []
          do_fork: T
        )
      ]
    )
    (command.Simple
      blame_tok: <environment>
      more_env: []
      words: [
        {<environment> <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <setVariable>}
        {(DQ (${ Id.VSub_Name env1))}
        {($ Id.VSub_DollarName key2)}
        {($ Id.VSub_DollarName value2)}
      ]
      redirects: []
      do_fork: T
    )
    (command.CommandList
      children: [
        (command.Sentence
          child: 
            (command.Simple
              blame_tok: <environment>
              more_env: []
              words: [
                {<environment> <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <getValue>}
                {(DQ (${ Id.VSub_Name env1))}
                {($ Id.VSub_DollarName key1)}
              ]
              redirects: []
              do_fork: T
            )
          terminator: <Id.Op_Semi _>
        )
        (command.Sentence
          child: 
            (command.Simple
              blame_tok: <variable>
              more_env: []
              words: [
                {<variable> <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <value>}
                {(DQ (${ Id.VSub_Name RESULT))}
              ]
              redirects: []
              do_fork: T
            )
          terminator: <Id.Op_Semi _>
        )
        (command.Simple
          blame_tok: <assert>
          more_env: []
          words: [
            {<assert> <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <equals>}
            {(DQ <'value one'>)}
            {(DQ (${ Id.VSub_Name RESULT))}
            {(DQ <'Multiple variables, first'>)}
          ]
          redirects: []
          do_fork: T
        )
      ]
    )
    (command.CommandList
      children: [
        (command.Sentence
          child: 
            (command.Simple
              blame_tok: <environment>
              more_env: []
              words: [
                {<environment> <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <getValue>}
                {(DQ (${ Id.VSub_Name env1))}
                {($ Id.VSub_DollarName key2)}
              ]
              redirects: []
              do_fork: T
            )
          terminator: <Id.Op_Semi _>
        )
        (command.Sentence
          child: 
            (command.Simple
              blame_tok: <variable>
              more_env: []
              words: [
                {<variable> <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <value>}
                {(DQ (${ Id.VSub_Name RESULT))}
              ]
              redirects: []
              do_fork: T
            )
          terminator: <Id.Op_Semi _>
        )
        (command.Simple
          blame_tok: <assert>
          more_env: []
          words: [
            {<assert> <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <equals>}
            {(DQ <'value two'>)}
            {(DQ (${ Id.VSub_Name RESULT))}
            {(DQ <'Multiple variables, second'>)}
          ]
          redirects: []
          do_fork: T
        )
      ]
    )
    (command.CommandList
      children: [
        (command.Sentence
          child: 
            (command.Simple
              blame_tok: <environment>
              more_env: []
              words: [{<environment> <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <new>}]
              redirects: []
              do_fork: T
            )
          terminator: <Id.Op_Semi _>
        )
        (command.ShAssignment
          left: <Id.Lit_VarLike 'env1='>
          pairs: [
            (AssignPair
              left: <Id.Lit_VarLike 'env1='>
              lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'env1='> name:env1)
              op: assign_op.Equal
              rhs: {(DQ (${ Id.VSub_Name RESULT))}
            )
          ]
          redirects: []
        )
      ]
    )
    (command.Simple
      blame_tok: <environment>
      more_env: []
      words: [
        {<environment> <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <setVariable>}
        {(DQ (${ Id.VSub_Name env1))}
        {($ Id.VSub_DollarName key1)}
        {($ Id.VSub_DollarName value1)}
      ]
      redirects: []
      do_fork: T
    )
    (command.CommandList
      children: [
        (command.Sentence
          child: 
            (command.Simple
              blame_tok: <environment>
              more_env: []
              words: [
                {<environment> <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <pushScope>}
                {(DQ (${ Id.VSub_Name env1))}
              ]
              redirects: []
              do_fork: T
            )
          terminator: <Id.Op_Semi _>
        )
        (command.ShAssignment
          left: <Id.Lit_VarLike 'env2='>
          pairs: [
            (AssignPair
              left: <Id.Lit_VarLike 'env2='>
              lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'env2='> name:env2)
              op: assign_op.Equal
              rhs: {(DQ (${ Id.VSub_Name RESULT))}
            )
          ]
          redirects: []
        )
      ]
    )
    (command.Simple
      blame_tok: <environment>
      more_env: []
      words: [
        {<environment> <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <setVariable>}
        {(DQ (${ Id.VSub_Name env2))}
        {($ Id.VSub_DollarName key2)}
        {($ Id.VSub_DollarName value2)}
      ]
      redirects: []
      do_fork: T
    )
    (command.CommandList
      children: [
        (command.Sentence
          child: 
            (command.Simple
              blame_tok: <environment>
              more_env: []
              words: [
                {<environment> <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <getValue>}
                {(DQ (${ Id.VSub_Name env2))}
                {($ Id.VSub_DollarName key2)}
              ]
              redirects: []
              do_fork: T
            )
          terminator: <Id.Op_Semi _>
        )
        (command.Sentence
          child: 
            (command.Simple
              blame_tok: <variable>
              more_env: []
              words: [
                {<variable> <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <value>}
                {(DQ (${ Id.VSub_Name RESULT))}
              ]
              redirects: []
              do_fork: T
            )
          terminator: <Id.Op_Semi _>
        )
        (command.Simple
          blame_tok: <assert>
          more_env: []
          words: [
            {<assert> <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <equals>}
            {(DQ <'value two'>)}
            {(DQ (${ Id.VSub_Name RESULT))}
            {(DQ <'Second scope'>)}
          ]
          redirects: []
          do_fork: T
        )
      ]
    )
    (command.CommandList
      children: [
        (command.Sentence
          child: 
            (command.Simple
              blame_tok: <environment>
              more_env: []
              words: [
                {<environment> <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <getValue>}
                {(DQ (${ Id.VSub_Name env2))}
                {($ Id.VSub_DollarName key1)}
              ]
              redirects: []
              do_fork: T
            )
          terminator: <Id.Op_Semi _>
        )
        (command.Sentence
          child: 
            (command.Simple
              blame_tok: <variable>
              more_env: []
              words: [
                {<variable> <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <value>}
                {(DQ (${ Id.VSub_Name RESULT))}
              ]
              redirects: []
              do_fork: T
            )
          terminator: <Id.Op_Semi _>
        )
        (command.Simple
          blame_tok: <assert>
          more_env: []
          words: [
            {<assert> <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <equals>}
            {(DQ <'value one'>)}
            {(DQ (${ Id.VSub_Name RESULT))}
            {(DQ <'Variable from first scope'>)}
          ]
          redirects: []
          do_fork: T
        )
      ]
    )
    (command.CommandList
      children: [
        (command.Sentence
          child: 
            (command.Simple
              blame_tok: <environment>
              more_env: []
              words: [
                {<environment> <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <popScope>}
                {(DQ (${ Id.VSub_Name env2))}
              ]
              redirects: []
              do_fork: T
            )
          terminator: <Id.Op_Semi _>
        )
        (command.ShAssignment
          left: <Id.Lit_VarLike 'env3='>
          pairs: [
            (AssignPair
              left: <Id.Lit_VarLike 'env3='>
              lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'env3='> name:env3)
              op: assign_op.Equal
              rhs: {(DQ (${ Id.VSub_Name RESULT))}
            )
          ]
          redirects: []
        )
      ]
    )
    (command.CommandList
      children: [
        (command.Sentence
          child: 
            (command.Simple
              blame_tok: <environment>
              more_env: []
              words: [
                {<environment> <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <getValue>}
                {(DQ (${ Id.VSub_Name env3))}
                {($ Id.VSub_DollarName key1)}
              ]
              redirects: []
              do_fork: T
            )
          terminator: <Id.Op_Semi _>
        )
        (command.Sentence
          child: 
            (command.Simple
              blame_tok: <variable>
              more_env: []
              words: [
                {<variable> <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <value>}
                {(DQ (${ Id.VSub_Name RESULT))}
              ]
              redirects: []
              do_fork: T
            )
          terminator: <Id.Op_Semi _>
        )
        (command.Simple
          blame_tok: <assert>
          more_env: []
          words: [
            {<assert> <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <equals>}
            {(DQ <'value one'>)}
            {(DQ (${ Id.VSub_Name RESULT))}
            {(DQ <'Variable from first scope post pop'>)}
          ]
          redirects: []
          do_fork: T
        )
      ]
    )
    (command.CommandList
      children: [
        (command.Sentence
          child: 
            (command.Simple
              blame_tok: <environment>
              more_env: []
              words: [
                {<environment> <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <hasValue>}
                {(DQ (${ Id.VSub_Name env3))}
                {($ Id.VSub_DollarName key2)}
              ]
              redirects: []
              do_fork: T
            )
          terminator: <Id.Op_Semi _>
        )
        (command.Simple
          blame_tok: <assert>
          more_env: []
          words: [
            {<assert> <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <equals>}
            {<1>}
            {($ Id.VSub_QMark '?')}
            {(DQ <'Variable from second scope after we popped it'>)}
          ]
          redirects: []
          do_fork: T
        )
      ]
    )
    (command.CommandList
      children: [
        (command.Sentence
          child: 
            (command.Simple
              blame_tok: <environment>
              more_env: []
              words: [{<environment> <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <new>}]
              redirects: []
              do_fork: T
            )
          terminator: <Id.Op_Semi _>
        )
        (command.ShAssignment
          left: <Id.Lit_VarLike 'env1='>
          pairs: [
            (AssignPair
              left: <Id.Lit_VarLike 'env1='>
              lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'env1='> name:env1)
              op: assign_op.Equal
              rhs: {(DQ (${ Id.VSub_Name RESULT))}
            )
          ]
          redirects: []
        )
      ]
    )
    (command.Simple
      blame_tok: <environment>
      more_env: []
      words: [
        {<environment> <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <setOrReplaceVariable>}
        {(DQ (${ Id.VSub_Name env1))}
        {($ Id.VSub_DollarName key1)}
        {($ Id.VSub_DollarName value1)}
      ]
      redirects: []
      do_fork: T
    )
    (command.CommandList
      children: [
        (command.Sentence
          child: 
            (command.Simple
              blame_tok: <environment>
              more_env: []
              words: [
                {<environment> <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <pushScope>}
                {(DQ (${ Id.VSub_Name env1))}
              ]
              redirects: []
              do_fork: T
            )
          terminator: <Id.Op_Semi _>
        )
        (command.ShAssignment
          left: <Id.Lit_VarLike 'env2='>
          pairs: [
            (AssignPair
              left: <Id.Lit_VarLike 'env2='>
              lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'env2='> name:env2)
              op: assign_op.Equal
              rhs: {(DQ (${ Id.VSub_Name RESULT))}
            )
          ]
          redirects: []
        )
      ]
    )
    (command.Simple
      blame_tok: <environment>
      more_env: []
      words: [
        {<environment> <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <setOrReplaceVariable>}
        {(DQ (${ Id.VSub_Name env2))}
        {($ Id.VSub_DollarName key2)}
        {($ Id.VSub_DollarName value2)}
      ]
      redirects: []
      do_fork: T
    )
    (command.Simple
      blame_tok: <environment>
      more_env: []
      words: [
        {<environment> <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <setOrReplaceVariable>}
        {(DQ (${ Id.VSub_Name env2))}
        {($ Id.VSub_DollarName key1)}
        {($ Id.VSub_DollarName value3)}
      ]
      redirects: []
      do_fork: T
    )
    (command.CommandList
      children: [
        (command.Sentence
          child: 
            (command.Simple
              blame_tok: <environment>
              more_env: []
              words: [
                {<environment> <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <getValue>}
                {(DQ (${ Id.VSub_Name env2))}
                {($ Id.VSub_DollarName key2)}
              ]
              redirects: []
              do_fork: T
            )
          terminator: <Id.Op_Semi _>
        )
        (command.Sentence
          child: 
            (command.Simple
              blame_tok: <variable>
              more_env: []
              words: [
                {<variable> <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <value>}
                {(DQ (${ Id.VSub_Name RESULT))}
              ]
              redirects: []
              do_fork: T
            )
          terminator: <Id.Op_Semi _>
        )
        (command.Simple
          blame_tok: <assert>
          more_env: []
          words: [
            {<assert> <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <equals>}
            {(DQ <'value two'>)}
            {(DQ (${ Id.VSub_Name RESULT))}
            {(DQ <'Second scope'>)}
          ]
          redirects: []
          do_fork: T
        )
      ]
    )
    (command.CommandList
      children: [
        (command.Sentence
          child: 
            (command.Simple
              blame_tok: <environment>
              more_env: []
              words: [
                {<environment> <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <getValue>}
                {(DQ (${ Id.VSub_Name env2))}
                {($ Id.VSub_DollarName key1)}
              ]
              redirects: []
              do_fork: T
            )
          terminator: <Id.Op_Semi _>
        )
        (command.Sentence
          child: 
            (command.Simple
              blame_tok: <variable>
              more_env: []
              words: [
                {<variable> <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <value>}
                {(DQ (${ Id.VSub_Name RESULT))}
              ]
              redirects: []
              do_fork: T
            )
          terminator: <Id.Op_Semi _>
        )
        (command.Simple
          blame_tok: <assert>
          more_env: []
          words: [
            {<assert> <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <equals>}
            {(DQ <'value three'>)}
            {(DQ (${ Id.VSub_Name RESULT))}
            {(DQ <'Variable from first scope'>)}
          ]
          redirects: []
          do_fork: T
        )
      ]
    )
    (command.CommandList
      children: [
        (command.Sentence
          child: 
            (command.Simple
              blame_tok: <environment>
              more_env: []
              words: [
                {<environment> <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <popScope>}
                {(DQ (${ Id.VSub_Name env2))}
              ]
              redirects: []
              do_fork: T
            )
          terminator: <Id.Op_Semi _>
        )
        (command.ShAssignment
          left: <Id.Lit_VarLike 'env3='>
          pairs: [
            (AssignPair
              left: <Id.Lit_VarLike 'env3='>
              lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'env3='> name:env3)
              op: assign_op.Equal
              rhs: {(DQ (${ Id.VSub_Name RESULT))}
            )
          ]
          redirects: []
        )
      ]
    )
    (command.CommandList
      children: [
        (command.Sentence
          child: 
            (command.Simple
              blame_tok: <environment>
              more_env: []
              words: [
                {<environment> <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <getValue>}
                {(DQ (${ Id.VSub_Name env3))}
                {($ Id.VSub_DollarName key1)}
              ]
              redirects: []
              do_fork: T
            )
          terminator: <Id.Op_Semi _>
        )
        (command.Sentence
          child: 
            (command.Simple
              blame_tok: <variable>
              more_env: []
              words: [
                {<variable> <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <value>}
                {(DQ (${ Id.VSub_Name RESULT))}
              ]
              redirects: []
              do_fork: T
            )
          terminator: <Id.Op_Semi _>
        )
        (command.Simple
          blame_tok: <assert>
          more_env: []
          words: [
            {<assert> <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <equals>}
            {(DQ <'value three'>)}
            {(DQ (${ Id.VSub_Name RESULT))}
            {(DQ <'Variable from first scope post pop'>)}
          ]
          redirects: []
          do_fork: T
        )
      ]
    )
    (command.CommandList
      children: [
        (command.Sentence
          child: 
            (command.Simple
              blame_tok: <environment>
              more_env: []
              words: [
                {<environment> <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <hasValue>}
                {(DQ (${ Id.VSub_Name env3))}
                {($ Id.VSub_DollarName key2)}
              ]
              redirects: []
              do_fork: T
            )
          terminator: <Id.Op_Semi _>
        )
        (command.Simple
          blame_tok: <assert>
          more_env: []
          words: [
            {<assert> <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <equals>}
            {<1>}
            {($ Id.VSub_QMark '?')}
            {(DQ <'Variable from second scope after we popped it'>)}
          ]
          redirects: []
          do_fork: T
        )
      ]
    )
    (command.CommandList
      children: [
        (command.Sentence
          child: 
            (command.Simple
              blame_tok: <environment>
              more_env: []
              words: [{<environment> <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <new>}]
              redirects: []
              do_fork: T
            )
          terminator: <Id.Op_Semi _>
        )
        (command.ShAssignment
          left: <Id.Lit_VarLike 'env1='>
          pairs: [
            (AssignPair
              left: <Id.Lit_VarLike 'env1='>
              lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'env1='> name:env1)
              op: assign_op.Equal
              rhs: {(DQ ($ Id.VSub_DollarName RESULT))}
            )
          ]
          redirects: []
        )
      ]
    )
    (command.Simple
      blame_tok: <environment>
      more_env: []
      words: [
        {<environment> <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <setVariable>}
        {($ Id.VSub_DollarName env1)}
        {($ Id.VSub_DollarName key1)}
        {($ Id.VSub_DollarName value1)}
      ]
      redirects: []
      do_fork: T
    )
    (command.CommandList
      children: [
        (command.Sentence
          child: 
            (command.Simple
              blame_tok: <environment>
              more_env: []
              words: [
                {<environment> <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <pushScope>}
                {(DQ (${ Id.VSub_Name env1))}
              ]
              redirects: []
              do_fork: T
            )
          terminator: <Id.Op_Semi _>
        )
        (command.ShAssignment
          left: <Id.Lit_VarLike 'env2='>
          pairs: [
            (AssignPair
              left: <Id.Lit_VarLike 'env2='>
              lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'env2='> name:env2)
              op: assign_op.Equal
              rhs: {(DQ ($ Id.VSub_DollarName RESULT))}
            )
          ]
          redirects: []
        )
      ]
    )
    (command.Simple
      blame_tok: <environment>
      more_env: []
      words: [
        {<environment> <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <setVariable>}
        {(DQ (${ Id.VSub_Name env2))}
        {($ Id.VSub_DollarName key1)}
        {($ Id.VSub_DollarName value2)}
      ]
      redirects: []
      do_fork: T
    )
    (command.CommandList
      children: [
        (command.Sentence
          child: 
            (command.Simple
              blame_tok: <environment>
              more_env: []
              words: [
                {<environment> <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <getValue>}
                {(DQ (${ Id.VSub_Name env1))}
                {($ Id.VSub_DollarName key1)}
              ]
              redirects: []
              do_fork: T
            )
          terminator: <Id.Op_Semi _>
        )
        (command.Sentence
          child: 
            (command.Simple
              blame_tok: <variable>
              more_env: []
              words: [
                {<variable> <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <value>}
                {(DQ (${ Id.VSub_Name RESULT))}
              ]
              redirects: []
              do_fork: T
            )
          terminator: <Id.Op_Semi _>
        )
        (command.Simple
          blame_tok: <assert>
          more_env: []
          words: [
            {<assert> <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <equals>}
            {(DQ <'value one'>)}
            {(DQ (${ Id.VSub_Name RESULT))}
            {(DQ <'setVariable, original env'>)}
          ]
          redirects: []
          do_fork: T
        )
      ]
    )
    (command.CommandList
      children: [
        (command.Sentence
          child: 
            (command.Simple
              blame_tok: <environment>
              more_env: []
              words: [
                {<environment> <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <getValue>}
                {(DQ (${ Id.VSub_Name env2))}
                {($ Id.VSub_DollarName key1)}
              ]
              redirects: []
              do_fork: T
            )
          terminator: <Id.Op_Semi _>
        )
        (command.Sentence
          child: 
            (command.Simple
              blame_tok: <variable>
              more_env: []
              words: [
                {<variable> <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <value>}
                {(DQ (${ Id.VSub_Name RESULT))}
              ]
              redirects: []
              do_fork: T
            )
          terminator: <Id.Op_Semi _>
        )
        (command.Simple
          blame_tok: <assert>
          more_env: []
          words: [
            {<assert> <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <equals>}
            {(DQ <'value two'>)}
            {(DQ (${ Id.VSub_Name RESULT))}
            {(DQ <'setVariable, new env'>)}
          ]
          redirects: []
          do_fork: T
        )
      ]
    )
    (command.Simple
      blame_tok: <assert>
      more_env: []
      words: [{<assert> <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <report>}]
      redirects: []
      do_fork: T
    )
    (command.If
      if_kw: <Id.KW_If if>
      arms: [
        (IfArm
          keyword: <Id.KW_If if>
          cond: 
            (condition.Shell
              commands: [
                (command.Sentence
                  child: 
                    (command.AndOr
                      children: [
                        (command.Simple
                          blame_tok: <Id.Lit_LBracket '['>
                          more_env: []
                          words: [
                            {<Id.Lit_LBracket '['>}
                            {
                              (BracedVarSub
                                left: <Id.Left_DollarBrace '${'>
                                token: <Id.VSub_Number 1>
                                var_name: 1
                                suffix_op: (suffix_op.Unary op:<Id.VTest_Plus _> arg_word:{<isset>})
                                right: <Id.Right_DollarBrace '}'>
                              )
                            }
                            {<Id.Lit_RBracket ']'>}
                          ]
                          redirects: []
                          do_fork: T
                        )
                        (command.Simple
                          blame_tok: <Id.Lit_LBracket '['>
                          more_env: []
                          words: [
                            {<Id.Lit_LBracket '['>}
                            {(DQ ($ Id.VSub_Number 1))}
                            {<Id.Lit_Equals '='> <Id.Lit_Equals '='>}
                            {(DQ <debug>)}
                            {<Id.Lit_RBracket ']'>}
                          ]
                          redirects: []
                          do_fork: T
                        )
                      ]
                      ops: [<Id.Op_DAmp _>]
                    )
                  terminator: <Id.Op_Semi _>
                )
              ]
            )
          then_kw: <Id.KW_Then then>
          action: [
            (command.Simple
              blame_tok: <variable>
              more_env: []
              words: [{<variable> <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <printMetadata>}]
              redirects: []
              do_fork: T
            )
          ]
          spids: [2795 2825]
        )
      ]
      else_action: []
      fi_kw: <Id.KW_Fi fi>
      redirects: []
    )
  ]
)