(command.CommandList
  children: [
    (command.Simple
      blame_tok: <_Dbg_help_add_sub>
      more_env: []
      words: [
        {<_Dbg_help_add_sub>}
        {<set>}
        {<showcommand>}
        {(SQ <'Set showcommand [on|off]\n'> <'\n'> <'Set showing the command to execute.'>)}
        {<1>}
      ]
      redirects: []
      do_fork: T
    )
    (command.Simple
      blame_tok: <typeset>
      more_env: []
      words: [{<typeset>} {<Id.Lit_VarLike '_Dbg_set_show_command='> (DQ <auto>)}]
      redirects: []
      do_fork: T
    )
    (command.Simple
      blame_tok: <Id.Lit_ArrayLhsOpen '_Dbg_next_complete['>
      more_env: []
      words: [
        {<Id.Lit_ArrayLhsOpen '_Dbg_next_complete['> <set>}
        {<showcommand> <Id.Lit_ArrayLhsClose ']='> (SQ <_Dbg_complete_onoff>)}
      ]
      redirects: []
      do_fork: T
    )
    (command.ShFunction
      name_tok: <_Dbg_do_set_showcommand>
      name: _Dbg_do_set_showcommand
      body: 
        (BraceGroup
          left: <Id.Lit_LBrace '{'>
          children: [
            (command.Case
              case_kw: <Id.KW_Case case>
              to_match: (case_arg.Word w:{($ Id.VSub_Number 1)})
              arms_start: <Id.KW_In in>
              arms: [
                (CaseArm
                  left: <1>
                  pattern: (pat.Words words:[{<1>}])
                  middle: <Id.Right_CasePat _>
                  action: [
                    (command.Simple
                      blame_tok: <_Dbg_write_journal_eval>
                      more_env: []
                      words: [{<_Dbg_write_journal_eval>} {(DQ <'_Dbg_set_show_command=on'>)}]
                      redirects: []
                      do_fork: T
                    )
                  ]
                  right: <Id.Op_DSemi _>
                )
                (CaseArm
                  left: <0>
                  pattern: (pat.Words words:[{<0>}])
                  middle: <Id.Right_CasePat _>
                  action: [
                    (command.Simple
                      blame_tok: <_Dbg_write_journal_eval>
                      more_env: []
                      words: [{<_Dbg_write_journal_eval>} {(DQ <'_Dbg_set_show_command=off'>)}]
                      redirects: []
                      do_fork: T
                    )
                  ]
                  right: <Id.Op_DSemi _>
                )
                (CaseArm
                  left: <on>
                  pattern: (pat.Words words:[{<on>} {<off>} {<auto>}])
                  middle: <Id.Right_CasePat _>
                  action: [
                    (command.Simple
                      blame_tok: <_Dbg_write_journal_eval>
                      more_env: []
                      words: [
                        {<_Dbg_write_journal_eval>}
                        {(DQ <'_Dbg_set_show_command='> ($ Id.VSub_Number 1))}
                      ]
                      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_errmsg>
                      more_env: []
                      words: [
                        {<_Dbg_errmsg>}
                        {
                          (DQ (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\"'> ch:'"') <on> 
                            (word_part.EscapedLiteral
                              token: <Id.Lit_EscapedChar '\\"'>
                              ch: '"'
                            ) <', '> (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\"'> ch:'"') <off> 
                            (word_part.EscapedLiteral
                              token: <Id.Lit_EscapedChar '\\"'>
                              ch: '"'
                            ) <' or '> (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\"'> ch:'"') <auto> 
                            (word_part.EscapedLiteral
                              token: <Id.Lit_EscapedChar '\\"'>
                              ch: '"'
                            ) <' expected.'>
                          )
                        }
                      ]
                      redirects: []
                      do_fork: T
                    )
                  ]
                )
              ]
              arms_end: <Id.KW_Esac esac>
              redirects: []
            )
            (command.ControlFlow keyword:<Id.ControlFlow_Return return> arg_word:{<0>})
          ]
          redirects: []
          right: <Id.Lit_RBrace '}'>
        )
    )
  ]
)