(command.CommandList
  children: [
    (command.Simple
      blame_tok: <typeset>
      more_env: []
      words: [{<typeset>} {<-i>} {<Id.Lit_VarLike '_Dbg_logging='> <0>}]
      redirects: []
      do_fork: T
    )
    (command.Simple
      blame_tok: <typeset>
      more_env: []
      words: [{<typeset>} {<Id.Lit_VarLike '_Dbg_logging_file='> (DQ <bashdb.txt>)}]
      redirects: []
      do_fork: T
    )
    (command.Simple
      blame_tok: <typeset>
      more_env: []
      words: [{<typeset>} {<Id.Lit_VarLike '_Dbg_logging_overwrite='> <0>}]
      redirects: []
      do_fork: T
    )
    (command.Simple
      blame_tok: <typeset>
      more_env: []
      words: [{<typeset>} {<Id.Lit_VarLike '_Dbg_logging_redirect='> <0>}]
      redirects: []
      do_fork: T
    )
    (command.ShFunction
      name_tok: <_Dbg_do_set_logging>
      name: _Dbg_do_set_logging
      body: 
        (BraceGroup
          left: <Id.Lit_LBrace '{'>
          children: [
            (command.Simple
              blame_tok: <typeset>
              more_env: []
              words: [
                {<typeset>}
                {<-a>}
                {<Id.Lit_VarLike 'args='> 
                  (ShArrayLiteral
                    left: <Id.Op_LParen _>
                    words: [{($ Id.VSub_At '@')}]
                    right: <Id.Right_ShArrayLiteral _>
                  )
                }
              ]
              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.DParen
                              left: <Id.Op_DLeftParen _>
                              child: 
                                (arith_expr.Binary
                                  op_id: Id.Arith_Great
                                  left: 
                                    {
                                      (BracedVarSub
                                        left: <Id.Left_DollarBrace '${'>
                                        token: <Id.VSub_Name args>
                                        var_name: args
                                        prefix_op: <Id.VSub_Pound '#'>
                                        bracket_op: (bracket_op.WholeArray op_id:Id.Lit_At)
                                        right: <Id.Right_DollarBrace '}'>
                                      )
                                    }
                                  right: {<Id.Lit_Digits 0>}
                                )
                              right: <Id.Op_DRightParen _>
                              redirects: []
                            )
                          terminator: <Id.Op_Semi _>
                        )
                      ]
                    )
                  then_kw: <Id.KW_Then then>
                  action: [
                    (command.Case
                      case_kw: <Id.KW_Case case>
                      to_match: 
                        (case_arg.Word
                          w: 
                            {
                              (BracedVarSub
                                left: <Id.Left_DollarBrace '${'>
                                token: <Id.VSub_Name args>
                                var_name: args
                                bracket_op: (bracket_op.ArrayIndex expr:{<Id.Lit_Digits 0>})
                                right: <Id.Right_DollarBrace '}'>
                              )
                            }
                        )
                      arms_start: <Id.KW_In in>
                      arms: [
                        (CaseArm
                          left: <off>
                          pattern: (pat.Words words:[{<off>}])
                          middle: <Id.Right_CasePat _>
                          action: [
                            (command.If
                              if_kw: <Id.KW_If if>
                              arms: [
                                (IfArm
                                  keyword: <Id.KW_If if>
                                  cond: 
                                    (condition.Shell
                                      commands: [
                                        (command.Sentence
                                          child: 
                                            (command.DParen
                                              left: <Id.Op_DLeftParen _>
                                              child: 
                                                (arith_expr.Binary
                                                  op_id: Id.Arith_NEqual
                                                  left: ($ Id.Lit_ArithVarLike _Dbg_logging)
                                                  right: {<Id.Lit_Digits 0>}
                                                )
                                              right: <Id.Op_DRightParen _>
                                              redirects: []
                                            )
                                          terminator: <Id.Op_Semi _>
                                        )
                                      ]
                                    )
                                  then_kw: <Id.KW_Then then>
                                  action: [
                                    (command.ShAssignment
                                      left: <Id.Lit_VarLike '_Dbg_logging='>
                                      pairs: [
                                        (AssignPair
                                          left: <Id.Lit_VarLike '_Dbg_logging='>
                                          lhs: 
                                            (sh_lhs_expr.Name
                                              left: <Id.Lit_VarLike '_Dbg_logging='>
                                              name: _Dbg_logging
                                            )
                                          op: assign_op.Equal
                                          rhs: {<0>}
                                        )
                                      ]
                                      redirects: []
                                    )
                                  ]
                                  spids: [167 182]
                                )
                              ]
                              else_action: []
                              fi_kw: <Id.KW_Fi fi>
                              redirects: []
                            )
                          ]
                          right: <Id.Op_DSemi _>
                        )
                        (CaseArm
                          left: <on>
                          pattern: (pat.Words words:[{<on>}])
                          middle: <Id.Right_CasePat _>
                          action: [
                            (command.If
                              if_kw: <Id.KW_If if>
                              arms: [
                                (IfArm
                                  keyword: <Id.KW_If if>
                                  cond: 
                                    (condition.Shell
                                      commands: [
                                        (command.Sentence
                                          child: 
                                            (command.DParen
                                              left: <Id.Op_DLeftParen _>
                                              child: 
                                                (arith_expr.Binary
                                                  op_id: Id.Arith_DEqual
                                                  left: ($ Id.Lit_ArithVarLike _Dbg_logging)
                                                  right: {<Id.Lit_Digits 0>}
                                                )
                                              right: <Id.Op_DRightParen _>
                                              redirects: []
                                            )
                                          terminator: <Id.Op_Semi _>
                                        )
                                      ]
                                    )
                                  then_kw: <Id.KW_Then then>
                                  action: [
                                    (command.ShAssignment
                                      left: <Id.Lit_VarLike '_Dbg_logging='>
                                      pairs: [
                                        (AssignPair
                                          left: <Id.Lit_VarLike '_Dbg_logging='>
                                          lhs: 
                                            (sh_lhs_expr.Name
                                              left: <Id.Lit_VarLike '_Dbg_logging='>
                                              name: _Dbg_logging
                                            )
                                          op: assign_op.Equal
                                          rhs: {<1>}
                                        )
                                      ]
                                      redirects: []
                                    )
                                    (command.If
                                      if_kw: <Id.KW_If if>
                                      arms: [
                                        (IfArm
                                          keyword: <Id.KW_If if>
                                          cond: 
                                            (condition.Shell
                                              commands: [
                                                (command.Sentence
                                                  child: 
                                                    (command.DParen
                                                      left: <Id.Op_DLeftParen _>
                                                      child: 
                                                        ($ Id.Lit_ArithVarLike _Dbg_logging_overwrite)
                                                      right: <Id.Op_DRightParen _>
                                                      redirects: []
                                                    )
                                                  terminator: <Id.Op_Semi _>
                                                )
                                              ]
                                            )
                                          then_kw: <Id.KW_Then then>
                                          action: [
                                            (command.Simple
                                              blame_tok: <cat>
                                              more_env: []
                                              words: [{<cat>} {<'/dev/null'>}]
                                              redirects: [
                                                (Redir
                                                  op: <Id.Redir_Great '>'>
                                                  loc: (redir_loc.Fd fd:1)
                                                  arg: {($ Id.VSub_DollarName _Dbg_logging_file)}
                                                )
                                              ]
                                              do_fork: T
                                            )
                                          ]
                                          spids: [226 237]
                                        )
                                      ]
                                      else_action: []
                                      fi_kw: <Id.KW_Fi fi>
                                      redirects: []
                                    )
                                  ]
                                  spids: [204 219]
                                )
                              ]
                              else_action: []
                              fi_kw: <Id.KW_Fi fi>
                              redirects: []
                            )
                          ]
                          right: <Id.Op_DSemi _>
                        )
                        (CaseArm
                          left: <overwrite>
                          pattern: (pat.Words words:[{<overwrite>}])
                          middle: <Id.Right_CasePat _>
                          action: [
                            (command.Simple
                              blame_tok: <local>
                              more_env: []
                              words: [
                                {<local>}
                                {<Id.Lit_VarLike 'onoff='> 
                                  (BracedVarSub
                                    left: <Id.Left_DollarBrace '${'>
                                    token: <Id.VSub_Number 2>
                                    var_name: 2
                                    suffix_op: 
                                      (suffix_op.Unary
                                        op: <Id.VTest_ColonHyphen _>
                                        arg_word: {(SQ <on>)}
                                      )
                                    right: <Id.Right_DollarBrace '}'>
                                  )
                                }
                              ]
                              redirects: []
                              do_fork: T
                            )
                            (command.Case
                              case_kw: <Id.KW_Case case>
                              to_match: (case_arg.Word w:{($ Id.VSub_DollarName onoff)})
                              arms_start: <Id.KW_In in>
                              arms: [
                                (CaseArm
                                  left: <on>
                                  pattern: (pat.Words words:[{<on>} {<1>}])
                                  middle: <Id.Right_CasePat _>
                                  action: [
                                    (command.Simple
                                      blame_tok: <_Dbg_write_journal_eval>
                                      more_env: []
                                      words: [
                                        {<_Dbg_write_journal_eval>}
                                        {(DQ <'_Dbg_logging_overwrite=1'>)}
                                      ]
                                      redirects: []
                                      do_fork: T
                                    )
                                  ]
                                  right: <Id.Op_DSemi _>
                                )
                                (CaseArm
                                  left: <off>
                                  pattern: (pat.Words words:[{<off>} {<0>}])
                                  middle: <Id.Right_CasePat _>
                                  action: [
                                    (command.Simple
                                      blame_tok: <_Dbg_write_journal_eval>
                                      more_env: []
                                      words: [
                                        {<_Dbg_write_journal_eval>}
                                        {(DQ <'_Dbg_logging_overwrite=0'>)}
                                      ]
                                      redirects: []
                                      do_fork: T
                                    )
                                  ]
                                  right: <Id.Op_DSemi _>
                                )
                                (CaseArm
                                  left: <Id.Lit_Star '*'>
                                  pattern: (pat.Words words:[{<Id.Lit_Star '*'>}])
                                  middle: <Id.Right_CasePat _>
                                  action: [
                                    (command.Simple
                                      blame_tok: <_Dbg_msg>
                                      more_env: []
                                      words: [
                                        {<_Dbg_msg>}
                                        {
                                          (DQ 
                                            (word_part.EscapedLiteral
                                              token: <Id.Lit_EscapedChar '\\"'>
                                              ch: '"'
                                            ) <on> (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\"'> ch:'"') <' or '> 
                                            (word_part.EscapedLiteral
                                              token: <Id.Lit_EscapedChar '\\"'>
                                              ch: '"'
                                            ) <off> (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\"'> ch:'"') <' expected.'>
                                          )
                                        }
                                      ]
                                      redirects: []
                                      do_fork: T
                                    )
                                  ]
                                )
                              ]
                              arms_end: <Id.KW_Esac esac>
                              redirects: []
                            )
                          ]
                          right: <Id.Op_DSemi _>
                        )
                        (CaseArm
                          left: <redirect>
                          pattern: (pat.Words words:[{<redirect>}])
                          middle: <Id.Right_CasePat _>
                          action: [
                            (command.Simple
                              blame_tok: <local>
                              more_env: []
                              words: [
                                {<local>}
                                {<Id.Lit_VarLike 'onoff='> 
                                  (BracedVarSub
                                    left: <Id.Left_DollarBrace '${'>
                                    token: <Id.VSub_Number 2>
                                    var_name: 2
                                    suffix_op: 
                                      (suffix_op.Unary
                                        op: <Id.VTest_ColonHyphen _>
                                        arg_word: {(SQ <on>)}
                                      )
                                    right: <Id.Right_DollarBrace '}'>
                                  )
                                }
                              ]
                              redirects: []
                              do_fork: T
                            )
                            (command.Case
                              case_kw: <Id.KW_Case case>
                              to_match: (case_arg.Word w:{($ Id.VSub_DollarName onoff)})
                              arms_start: <Id.KW_In in>
                              arms: [
                                (CaseArm
                                  left: <on>
                                  pattern: (pat.Words words:[{<on>} {<1>}])
                                  middle: <Id.Right_CasePat _>
                                  action: [
                                    (command.Simple
                                      blame_tok: <_Dbg_write_journal_eval>
                                      more_env: []
                                      words: [
                                        {<_Dbg_write_journal_eval>}
                                        {(DQ <'_Dbg_logging_redirect=1'>)}
                                      ]
                                      redirects: []
                                      do_fork: T
                                    )
                                  ]
                                  right: <Id.Op_DSemi _>
                                )
                                (CaseArm
                                  left: <off>
                                  pattern: (pat.Words words:[{<off>} {<0>}])
                                  middle: <Id.Right_CasePat _>
                                  action: [
                                    (command.Simple
                                      blame_tok: <_Dbg_write_journal_eval>
                                      more_env: []
                                      words: [
                                        {<_Dbg_write_journal_eval>}
                                        {(DQ <'_Dbg_logging_redirect=0'>)}
                                      ]
                                      redirects: []
                                      do_fork: T
                                    )
                                  ]
                                  right: <Id.Op_DSemi _>
                                )
                                (CaseArm
                                  left: <Id.Lit_Star '*'>
                                  pattern: (pat.Words words:[{<Id.Lit_Star '*'>}])
                                  middle: <Id.Right_CasePat _>
                                  action: [
                                    (command.Simple
                                      blame_tok: <_Dbg_msg>
                                      more_env: []
                                      words: [
                                        {<_Dbg_msg>}
                                        {
                                          (DQ 
                                            (word_part.EscapedLiteral
                                              token: <Id.Lit_EscapedChar '\\"'>
                                              ch: '"'
                                            ) <on> (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\"'> ch:'"') <' or '> 
                                            (word_part.EscapedLiteral
                                              token: <Id.Lit_EscapedChar '\\"'>
                                              ch: '"'
                                            ) <off> (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\"'> ch:'"') <' expected.'>
                                          )
                                        }
                                      ]
                                      redirects: []
                                      do_fork: T
                                    )
                                  ]
                                )
                              ]
                              arms_end: <Id.KW_Esac esac>
                              redirects: []
                            )
                          ]
                          right: <Id.Op_DSemi _>
                        )
                        (CaseArm
                          left: <file>
                          pattern: (pat.Words words:[{<file>}])
                          middle: <Id.Right_CasePat _>
                          action: [
                            (command.If
                              if_kw: <Id.KW_If if>
                              arms: [
                                (IfArm
                                  keyword: <Id.KW_If if>
                                  cond: 
                                    (condition.Shell
                                      commands: [
                                        (command.Sentence
                                          child: 
                                            (command.DParen
                                              left: <Id.Op_DLeftParen _>
                                              child: 
                                                (arith_expr.Binary
                                                  op_id: Id.Arith_DEqual
                                                  left: 
                                                    {
                                                      (BracedVarSub
                                                        left: <Id.Left_DollarBrace '${'>
                                                        token: <Id.VSub_Name args>
                                                        var_name: args
                                                        prefix_op: <Id.VSub_Pound '#'>
                                                        bracket_op: 
                                                          (bracket_op.WholeArray
                                                            op_id: Id.Lit_At
                                                          )
                                                        right: <Id.Right_DollarBrace '}'>
                                                      )
                                                    }
                                                  right: {<Id.Lit_Digits 2>}
                                                )
                                              right: <Id.Op_DRightParen _>
                                              redirects: []
                                            )
                                          terminator: <Id.Op_Semi _>
                                        )
                                      ]
                                    )
                                  then_kw: <Id.KW_Then then>
                                  action: [
                                    (command.Simple
                                      blame_tok: <_Dbg_write_journal_eval>
                                      more_env: []
                                      words: [
                                        {<_Dbg_write_journal_eval>}
                                        {
                                          (DQ <'_Dbg_logging_file='> 
                                            (BracedVarSub
                                              left: <Id.Left_DollarBrace '${'>
                                              token: <Id.VSub_Name args>
                                              var_name: args
                                              bracket_op: 
                                                (bracket_op.ArrayIndex
                                                  expr: {<Id.Lit_Digits 1>}
                                                )
                                              right: <Id.Right_DollarBrace '}'>
                                            )
                                          )
                                        }
                                      ]
                                      redirects: []
                                      do_fork: T
                                    )
                                  ]
                                  spids: [440 461]
                                )
                              ]
                              else_kw: <Id.KW_Else else>
                              else_action: [
                                (command.Simple
                                  blame_tok: <_Dbg_msg>
                                  more_env: []
                                  words: [
                                    {<_Dbg_msg>}
                                    {
                                      (DQ 
                                        <
'Expecting a single file argument in \'set logging file\'.'
                                        >
                                      )
                                    }
                                  ]
                                  redirects: []
                                  do_fork: T
                                )
                              ]
                              fi_kw: <Id.KW_Fi fi>
                              redirects: []
                            )
                          ]
                          right: <Id.Op_DSemi _>
                        )
                        (CaseArm
                          left: <Id.Lit_Star '*'>
                          pattern: (pat.Words words:[{<Id.Lit_Star '*'>}])
                          middle: <Id.Right_CasePat _>
                          action: [
                            (command.Simple
                              blame_tok: <_Dbg_msg>
                              more_env: []
                              words: [{<_Dbg_msg>} {(DQ <'Usage: set logging on'>)}]
                              redirects: []
                              do_fork: T
                            )
                            (command.Simple
                              blame_tok: <_Dbg_msg>
                              more_env: []
                              words: [{<_Dbg_msg>} {(DQ <'set logging off'>)}]
                              redirects: []
                              do_fork: T
                            )
                            (command.Simple
                              blame_tok: <_Dbg_msg>
                              more_env: []
                              words: [{<_Dbg_msg>} {(DQ <'set logging file FILENAME'>)}]
                              redirects: []
                              do_fork: T
                            )
                            (command.Simple
                              blame_tok: <_Dbg_msg>
                              more_env: []
                              words: [{<_Dbg_msg>} {(DQ <'set logging overwrite [on|off]'>)}]
                              redirects: []
                              do_fork: T
                            )
                            (command.Simple
                              blame_tok: <_Dbg_msg>
                              more_env: []
                              words: [{<_Dbg_msg>} {(DQ <'set logging redirect [on|off]'>)}]
                              redirects: []
                              do_fork: T
                            )
                          ]
                          right: <Id.Op_DSemi _>
                        )
                      ]
                      arms_end: <Id.KW_Esac esac>
                      redirects: []
                    )
                  ]
                  spids: [125 146]
                )
              ]
              else_action: []
              fi_kw: <Id.KW_Fi fi>
              redirects: []
            )
            (command.ControlFlow keyword:<Id.ControlFlow_Return return> arg_word:{<0>})
          ]
          redirects: []
          right: <Id.Lit_RBrace '}'>
        )
    )
    (command.ShFunction
      name_tok: <_Dbg_do_show_logging>
      name: _Dbg_do_show_logging
      body: 
        (BraceGroup
          left: <Id.Lit_LBrace '{'>
          children: [
            (command.Simple
              blame_tok: <typeset>
              more_env: []
              words: [
                {<typeset>}
                {<-a>}
                {<Id.Lit_VarLike 'args='> 
                  (ShArrayLiteral
                    left: <Id.Op_LParen _>
                    words: [{($ Id.VSub_Star '*')}]
                    right: <Id.Right_ShArrayLiteral _>
                  )
                }
              ]
              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.DParen
                              left: <Id.Op_DLeftParen _>
                              child: 
                                (arith_expr.Binary
                                  op_id: Id.Arith_DEqual
                                  left: 
                                    {
                                      (BracedVarSub
                                        left: <Id.Left_DollarBrace '${'>
                                        token: <Id.VSub_Name args>
                                        var_name: args
                                        prefix_op: <Id.VSub_Pound '#'>
                                        bracket_op: (bracket_op.WholeArray op_id:Id.Lit_At)
                                        right: <Id.Right_DollarBrace '}'>
                                      )
                                    }
                                  right: {<Id.Lit_Digits 0>}
                                )
                              right: <Id.Op_DRightParen _>
                              redirects: []
                            )
                          terminator: <Id.Op_Semi _>
                        )
                      ]
                    )
                  then_kw: <Id.KW_Then then>
                  action: [
                    (command.Simple
                      blame_tok: <_Dbg_msg>
                      more_env: []
                      words: [
                        {<_Dbg_msg>}
                        {
                          (DQ <'Future logs will be written to '> 
                            ($ Id.VSub_DollarName _Dbg_logging_file)
                          )
                        }
                      ]
                      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.DParen
                                      left: <Id.Op_DLeftParen _>
                                      child: ($ Id.Lit_ArithVarLike _Dbg_logging_overwrite)
                                      right: <Id.Op_DRightParen _>
                                      redirects: []
                                    )
                                  terminator: <Id.Op_Semi _>
                                )
                              ]
                            )
                          then_kw: <Id.KW_Then then>
                          action: [
                            (command.Simple
                              blame_tok: <_Dbg_msg>
                              more_env: []
                              words: [{<_Dbg_msg>} {(SQ <'Logs will overwrite the log file.'>)}]
                              redirects: []
                              do_fork: T
                            )
                          ]
                          spids: [599 610]
                        )
                      ]
                      else_kw: <Id.KW_Else else>
                      else_action: [
                        (command.Simple
                          blame_tok: <_Dbg_msg>
                          more_env: []
                          words: [{<_Dbg_msg>} {(SQ <'Logs will be appended to the log file.'>)}]
                          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.DParen
                                          left: <Id.Op_DLeftParen _>
                                          child: ($ Id.Lit_ArithVarLike _Dbg_logging_redirect)
                                          right: <Id.Op_DRightParen _>
                                          redirects: []
                                        )
                                      terminator: <Id.Op_Semi _>
                                    )
                                  ]
                                )
                              then_kw: <Id.KW_Then then>
                              action: [
                                (command.Simple
                                  blame_tok: <_Dbg_msg>
                                  more_env: []
                                  words: [
                                    {<_Dbg_msg>}
                                    {(DQ <'Output will be sent only to the log file.'>)}
                                  ]
                                  redirects: []
                                  do_fork: T
                                )
                              ]
                              spids: [630 641]
                            )
                          ]
                          else_kw: <Id.KW_Else else>
                          else_action: [
                            (command.Simple
                              blame_tok: <_Dbg_msg>
                              more_env: []
                              words: [{<_Dbg_msg>} {(DQ <'Output will be logged and displayed.'>)}]
                              redirects: []
                              do_fork: T
                            )
                          ]
                          fi_kw: <Id.KW_Fi fi>
                          redirects: []
                        )
                      ]
                      fi_kw: <Id.KW_Fi fi>
                      redirects: []
                    )
                  ]
                  spids: [567 588]
                )
              ]
              else_kw: <Id.KW_Else else>
              else_action: [
                (command.Case
                  case_kw: <Id.KW_Case case>
                  to_match: 
                    (case_arg.Word
                      w: 
                        {
                          (BracedVarSub
                            left: <Id.Left_DollarBrace '${'>
                            token: <Id.VSub_Name args>
                            var_name: args
                            bracket_op: (bracket_op.ArrayIndex expr:{<Id.Lit_Digits 0>})
                            right: <Id.Right_DollarBrace '}'>
                          )
                        }
                    )
                  arms_start: <Id.KW_In in>
                  arms: [
                    (CaseArm
                      left: <overwrite>
                      pattern: (pat.Words words:[{<overwrite>}])
                      middle: <Id.Right_CasePat _>
                      action: [
                        (command.Simple
                          blame_tok: <local>
                          more_env: []
                          words: [{<local>} {<Id.Lit_VarLike 'onoff='> (DQ <off.>)}]
                          redirects: []
                          do_fork: T
                        )
                        (command.AndOr
                          children: [
                            (command.DParen
                              left: <Id.Op_DLeftParen _>
                              child: 
                                (arith_expr.Binary
                                  op_id: Id.Arith_NEqual
                                  left: ($ Id.Lit_ArithVarLike _Dbg_logging_overwrite)
                                  right: {<Id.Lit_Digits 0>}
                                )
                              right: <Id.Op_DRightParen _>
                              redirects: []
                            )
                            (command.ShAssignment
                              left: <Id.Lit_VarLike 'onoff='>
                              pairs: [
                                (AssignPair
                                  left: <Id.Lit_VarLike 'onoff='>
                                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'onoff='> name:onoff)
                                  op: assign_op.Equal
                                  rhs: {(SQ <on.>)}
                                )
                              ]
                              redirects: []
                            )
                          ]
                          ops: [<Id.Op_DAmp _>]
                        )
                        (command.Simple
                          blame_tok: <_Dbg_msg>
                          more_env: []
                          words: [
                            {<_Dbg_msg>}
                            {
                              (DQ <'Whether logging overwrites or appends to the log file is '> 
                                (${ Id.VSub_Name onoff)
                              )
                            }
                          ]
                          redirects: []
                          do_fork: T
                        )
                      ]
                      right: <Id.Op_DSemi _>
                    )
                    (CaseArm
                      left: <redirect>
                      pattern: (pat.Words words:[{<redirect>}])
                      middle: <Id.Right_CasePat _>
                      action: [
                        (command.Simple
                          blame_tok: <local>
                          more_env: []
                          words: [{<local>} {<Id.Lit_VarLike 'onoff='> (DQ <off.>)}]
                          redirects: []
                          do_fork: T
                        )
                        (command.AndOr
                          children: [
                            (command.DParen
                              left: <Id.Op_DLeftParen _>
                              child: 
                                (arith_expr.Binary
                                  op_id: Id.Arith_NEqual
                                  left: ($ Id.Lit_ArithVarLike _Dbg_logging_redirect)
                                  right: {<Id.Lit_Digits 0>}
                                )
                              right: <Id.Op_DRightParen _>
                              redirects: []
                            )
                            (command.ShAssignment
                              left: <Id.Lit_VarLike 'onoff='>
                              pairs: [
                                (AssignPair
                                  left: <Id.Lit_VarLike 'onoff='>
                                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'onoff='> name:onoff)
                                  op: assign_op.Equal
                                  rhs: {(SQ <on.>)}
                                )
                              ]
                              redirects: []
                            )
                          ]
                          ops: [<Id.Op_DAmp _>]
                        )
                        (command.Simple
                          blame_tok: <_Dbg_msg>
                          more_env: []
                          words: [
                            {<_Dbg_msg>}
                            {(DQ <'The logging output mode is '> (${ Id.VSub_Name onoff) <.>)}
                          ]
                          redirects: []
                          do_fork: T
                        )
                      ]
                      right: <Id.Op_DSemi _>
                    )
                    (CaseArm
                      left: <file>
                      pattern: (pat.Words words:[{<file>}])
                      middle: <Id.Right_CasePat _>
                      action: [
                        (command.Simple
                          blame_tok: <_Dbg_msg>
                          more_env: []
                          words: [
                            {<_Dbg_msg>}
                            {(DQ <'The current logfile is '> (${ Id.VSub_Name _Dbg_logging_file))}
                          ]
                          redirects: []
                          do_fork: T
                        )
                      ]
                      right: <Id.Op_DSemi _>
                    )
                    (CaseArm
                      left: <Id.Lit_Star '*'>
                      pattern: (pat.Words words:[{<Id.Lit_Star '*'>}])
                      middle: <Id.Right_CasePat _>
                      action: [
                        (command.Simple
                          blame_tok: <_Dbg_undefined_cmd>
                          more_env: []
                          words: [
                            {<_Dbg_undefined_cmd>}
                            {(DQ <'show logging'>)}
                            {
                              (DQ 
                                (BracedVarSub
                                  left: <Id.Left_DollarBrace '${'>
                                  token: <Id.VSub_Name args>
                                  var_name: args
                                  bracket_op: (bracket_op.ArrayIndex expr:{<Id.Lit_Digits 0>})
                                  right: <Id.Right_DollarBrace '}'>
                                )
                              )
                            }
                          ]
                          redirects: []
                          do_fork: T
                        )
                      ]
                      right: <Id.Op_DSemi _>
                    )
                  ]
                  arms_end: <Id.KW_Esac esac>
                  redirects: []
                )
              ]
              fi_kw: <Id.KW_Fi fi>
              redirects: []
            )
          ]
          redirects: []
          right: <Id.Lit_RBrace '}'>
        )
    )
  ]
)