(command.CommandList
  children: [
    (command.If
      arms: [
        (if_arm
          cond: 
            (condition.Shell
              commands: [
                (C {<Id.Lit_LBracket '['>} {(DQ <x> ($ Id.VSub_Number 1))} {<Id.Lit_Equals '='>} 
                  {(DQ <x-q>)} {<Id.Lit_RBracket ']'>}
                )
              ]
            )
          action: [
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'quiet='> name:quiet)
                  op: assign_op.Equal
                  rhs: {<1>}
                  spids: [141]
                )
              ]
              redirects: []
            )
            (C {<shift>})
          ]
          spids: [121 138]
        )
      ]
      else_action: [
        (command.ShAssignment
          pairs: [
            (assign_pair
              lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'quiet='> name:quiet)
              op: assign_op.Equal
              rhs: {<0>}
              spids: [150]
            )
          ]
          redirects: []
        )
      ]
      redirects: []
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'usewhoami='> name:usewhoami)
          op: assign_op.Equal
          rhs: {<0>}
          spids: [156]
        )
      ]
      redirects: []
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'usehostname='> name:usehostname)
          op: assign_op.Equal
          rhs: {<0>}
          spids: [159]
        )
      ]
      redirects: []
    )
    (command.ForEach
      iter_names: [p]
      iterable: 
        (for_iter.Words
          words: [
            {
              (command_sub
                left_token: <Id.Left_Backtick '`'>
                child: 
                  (command.Pipeline
                    children: [(C {<echo>} {($ Id.VSub_DollarName PATH)}) (C {<sed>} {(SQ <'s/:/ /g'>)})]
                    negated: F
                    stderr_indices: []
                  )
                right: <Id.Backtick_Right '`'>
              )
            }
          ]
        )
      body: 
        (command.DoGroup
          children: [
            (command.If
              arms: [
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [
                        (C {<Id.Lit_LBracket '['>} {(DQ <x> ($ Id.VSub_DollarName p))} 
                          {<Id.Lit_Equals '='>} {(DQ <x>)} {<Id.Lit_RBracket ']'>}
                        )
                      ]
                    )
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'p='> name:p)
                          op: assign_op.Equal
                          rhs: {(DQ <.>)}
                          spids: [208]
                        )
                      ]
                      redirects: []
                    )
                  ]
                  spids: [187 205]
                )
              ]
              else_action: []
              redirects: []
            )
            (command.If
              arms: [
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [
                        (C {<Id.Lit_LBracket '['>} {<-f>} {($ Id.VSub_DollarName p) <'/whoami'>} 
                          {<Id.Lit_RBracket ']'>}
                        )
                      ]
                    )
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'usewhoami='> name:usewhoami)
                          op: assign_op.Equal
                          rhs: {<1>}
                          spids: [232]
                        )
                      ]
                      redirects: []
                    )
                    (command.If
                      arms: [
                        (if_arm
                          cond: 
                            (condition.Shell
                              commands: [
                                (C {<Id.Lit_LBracket '['>} {($ Id.VSub_DollarName usehostname)} {<-ne>} 
                                  {<0>} {<Id.Lit_RBracket ']'>}
                                )
                              ]
                            )
                          action: [
                            (command.Sentence
                              child: (command.ControlFlow token:<Id.ControlFlow_Break break>)
                              terminator: <Id.Op_Semi _>
                            )
                          ]
                          spids: [236 249]
                        )
                      ]
                      else_action: []
                      redirects: []
                    )
                  ]
                  spids: [217 229]
                )
              ]
              else_action: []
              redirects: []
            )
            (command.If
              arms: [
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [
                        (C {<Id.Lit_LBracket '['>} {<-f>} {($ Id.VSub_DollarName p) <'/hostname'>} 
                          {<Id.Lit_RBracket ']'>}
                        )
                      ]
                    )
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: 
                            (sh_lhs_expr.Name
                              left: <Id.Lit_VarLike 'usehostname='>
                              name: usehostname
                            )
                          op: assign_op.Equal
                          rhs: {<1>}
                          spids: [277]
                        )
                      ]
                      redirects: []
                    )
                    (command.If
                      arms: [
                        (if_arm
                          cond: 
                            (condition.Shell
                              commands: [
                                (C {<Id.Lit_LBracket '['>} {($ Id.VSub_DollarName usewhoami)} {<-ne>} 
                                  {<0>} {<Id.Lit_RBracket ']'>}
                                )
                              ]
                            )
                          action: [
                            (command.Sentence
                              child: (command.ControlFlow token:<Id.ControlFlow_Break break>)
                              terminator: <Id.Op_Semi _>
                            )
                          ]
                          spids: [281 294]
                        )
                      ]
                      else_action: []
                      redirects: []
                    )
                  ]
                  spids: [262 274]
                )
              ]
              else_action: []
              redirects: []
            )
          ]
        )
      redirects: []
    )
    (command.If
      arms: [
        (if_arm
          cond: 
            (condition.Shell
              commands: [
                (C {<Id.Lit_LBracket '['>} {($ Id.VSub_DollarName usewhoami)} {<-ne>} {<0>} 
                  {<Id.Lit_RBracket ']'>}
                )
              ]
            )
          action: [
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'user='> name:user)
                  op: assign_op.Equal
                  rhs: 
                    {
                      (command_sub
                        left_token: <Id.Left_Backtick '`'>
                        child: (C {<whoami>})
                        right: <Id.Backtick_Right '`'>
                      )
                    }
                  spids: [323]
                )
              ]
              redirects: []
            )
          ]
          spids: [308 320]
        )
      ]
      else_action: [
        (command.ShAssignment
          pairs: [
            (assign_pair
              lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'user='> name:user)
              op: assign_op.Equal
              rhs: {($ Id.VSub_DollarName LOGNAME)}
              spids: [333]
            )
          ]
          redirects: []
        )
      ]
      redirects: []
    )
    (command.If
      arms: [
        (if_arm
          cond: 
            (condition.Shell
              commands: [
                (C {<Id.Lit_LBracket '['>} {($ Id.VSub_DollarName usehostname)} {<-ne>} {<0>} 
                  {<Id.Lit_RBracket ']'>}
                )
              ]
            )
          action: [
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'host='> name:host)
                  op: assign_op.Equal
                  rhs: 
                    {
                      (command_sub
                        left_token: <Id.Left_Backtick '`'>
                        child: (C {<hostname>})
                        right: <Id.Backtick_Right '`'>
                      )
                    }
                  spids: [354]
                )
              ]
              redirects: []
            )
          ]
          spids: [339 351]
        )
      ]
      else_action: [
        (command.ShAssignment
          pairs: [
            (assign_pair
              lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'host='> name:host)
              op: assign_op.Equal
              rhs: 
                {
                  (command_sub
                    left_token: <Id.Left_Backtick '`'>
                    child: (C {<uname>} {<-n>})
                    right: <Id.Backtick_Right '`'>
                  )
                }
              spids: [364]
            )
          ]
          redirects: []
        )
      ]
      redirects: []
    )
    (command.If
      arms: [
        (if_arm
          cond: 
            (condition.Shell
              commands: [
                (C {<Id.Lit_LBracket '['>} {($ Id.VSub_DollarName quiet)} {<-eq>} {<1>} 
                  {<Id.Lit_RBracket ']'>}
                )
              ]
            )
          action: [
            (C {<echo>} {(SQ <'#####'>)} {<built>} {<on>} 
              {
                (command_sub
                  left_token: <Id.Left_Backtick '`'>
                  child: (C {<date>})
                  right: <Id.Backtick_Right '`'>
                )
              }
            )
          ]
          spids: [375 387]
        )
      ]
      else_action: [
        (command.If
          arms: [
            (if_arm
              cond: 
                (condition.Shell
                  commands: [
                    (command.Sentence
                      child: 
                        (C {<Id.Lit_LBracket '['>} {<-n>} {(DQ ($ Id.VSub_DollarName user))} 
                          {<Id.Lit_RBracket ']'>}
                        )
                      terminator: <Id.Op_Semi _>
                    )
                  ]
                )
              action: [
                (C {<echo>} {(SQ <'#####'>)} {<built>} {<by>} 
                  {($ Id.VSub_DollarName user) <Id.Lit_At '@'> ($ Id.VSub_DollarName host)} {<on>} 
                  {
                    (command_sub
                      left_token: <Id.Left_Backtick '`'>
                      child: (C {<date>})
                      right: <Id.Backtick_Right '`'>
                    )
                  }
                )
              ]
              spids: [409 422]
            )
          ]
          else_action: [
            (C {<echo>} {(SQ <'#####'>)} {<built>} {<automatically>} 
              {<Id.Lit_At '@'> ($ Id.VSub_DollarName host)} {<on>} 
              {
                (command_sub
                  left_token: <Id.Left_Backtick '`'>
                  child: (C {<date>})
                  right: <Id.Backtick_Right '`'>
                )
              }
            )
          ]
          redirects: []
        )
        (command.Pipeline
          children: [
            (C {<echo>} {(SQ <'#####'>)} {<Id.KW_In in>} 
              {
                (command_sub
                  left_token: <Id.Left_Backtick '`'>
                  child: (C {<pwd>})
                  right: <Id.Backtick_Right '`'>
                )
              }
            )
            (C {<sed>} {(SQ <'s/\\/tmp_mnt//'>)})
          ]
          negated: F
          stderr_indices: []
        )
        (command.Pipeline
          children: [
            (C {<echo>} {(SQ <'#####'>)} {<using>} {($ Id.VSub_Number 1)} {<as>} {<configuration>} 
              {<include>} {<directory>}
            )
            (C {<sed>} {(SQ <'s/\\/tmp_mnt//'>)})
          ]
          negated: F
          stderr_indices: []
        )
        (C {<echo>} 
          {
            (DQ <'define('> (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\`'> ch:'`') 
              <'__HOST__\', '> ($ Id.VSub_DollarName host) <')dnl'>
            )
          }
        )
      ]
      redirects: []
    )
  ]
)