(command.CommandList
  children: [
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'PATH='> name:PATH)
          op: assign_op.Equal
          rhs: {<'/usr/lib/acct'> <Id.Lit_Colon ':'> <'/usr/bin'> <Id.Lit_Colon ':'> <'/usr/sbin'>}
          spids: [99]
        )
      ]
      redirects: []
    )
    (C {<cd>} {<'/var/adm'>})
    (command.Case
      to_match: {(DQ ($ Id.VSub_Number 1))}
      arms: [
        (case_arm
          pat_list: [{<on>}]
          action: [
            (command.If
              arms: [
                (if_arm
                  cond: (condition.Shell commands:[(C {<test>} {<Id.KW_Bang '!'>} {<-r>} {<pacct>})])
                  action: [(C {<nulladm>} {<pacct>})]
                  spids: [122 133]
                )
              ]
              else_action: []
              redirects: []
            )
            (C {<accton>} {<pacct>})
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike '_rc='> name:_rc)
                  op: assign_op.Equal
                  rhs: {($ Id.VSub_QMark '?')}
                  spids: [149]
                )
              ]
              redirects: []
            )
          ]
          spids: [118 119 153 -1]
        )
        (case_arm
          pat_list: [{<off>}]
          action: [
            (C {<accton>})
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike '_rc='> name:_rc)
                  op: assign_op.Equal
                  rhs: {($ Id.VSub_QMark '?')}
                  spids: [162]
                )
              ]
              redirects: []
            )
          ]
          spids: [155 156 166 -1]
        )
        (case_arm
          pat_list: [{<switch>}]
          action: [
            (C {<pfexec>} {<'/usr/sbin/logadm'>} {<-p>} {<now>} {<'/var/adm/pacct'>})
            (command.If
              arms: [
                (if_arm
                  cond: (condition.Shell commands:[(C {<test>} {<Id.KW_Bang '!'>} {<-r>} {<pacct>})])
                  action: [(C {<nulladm>} {<pacct>}) (C {<accton>} {<pacct>})]
                  spids: [183 194]
                )
              ]
              else_action: []
              redirects: []
            )
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike '_rc='> name:_rc)
                  op: assign_op.Equal
                  rhs: {($ Id.VSub_QMark '?')}
                  spids: [210]
                )
              ]
              redirects: []
            )
          ]
          spids: [168 169 214 -1]
        )
        (case_arm
          pat_list: [{<Id.Lit_Star '*'>}]
          action: [
            (command.Simple
              words: [{<echo>} {(DQ <'Usage: turnacct on|off|switch'>)}]
              redirects: [(redir op:<Id.Redir_GreatAnd '>&'> loc:(redir_loc.Fd fd:1) arg:{<2>})]
              more_env: []
              do_fork: T
            )
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike '_rc='> name:_rc)
                  op: assign_op.Equal
                  rhs: {<1>}
                  spids: [230]
                )
              ]
              redirects: []
            )
          ]
          spids: [216 217 234 -1]
        )
      ]
      redirects: []
    )
    (command.ControlFlow token:<Id.ControlFlow_Exit exit> arg_word:{(${ Id.VSub_Name _rc)})
  ]
)