(command.CommandList
  children: [
    (command.Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (lhs_expr.LhsName name:linux_dft spids:[115])
          op: Equal
          rhs: {(linux2.2)}
          spids: [115]
        )
      ]
      spids: [115]
    )
    (C {(Lit_Other ':')} 
      {
        (word_part.BracedVarSub
          token: <VSub_Name datadir>
          suffix_op: 
            (suffix_op.StringUnary
              op_id: VTest_Equals
              arg_word: {(Lit_Slash /) (usr) (Lit_Slash /) (share)}
            )
          spids: [121 128]
        )
      }
    )
    (C {(Lit_Other ':')} 
      {
        (word_part.BracedVarSub
          token: <VSub_Name WHICH_LINUX>
          suffix_op: 
            (suffix_op.StringUnary
              op_id: VTest_Equals
              arg_word: {($ VSub_DollarName '$linux_dft')}
            )
          spids: [132 136]
        )
      }
    )
    (C {(Lit_Other ':')} 
      {
        (word_part.BracedVarSub
          token: <VSub_Name WHICH_XTERM>
          suffix_op: (suffix_op.StringUnary op_id:VTest_Equals arg_word:{(xterm-new)})
          spids: [140 144]
        )
      }
    )
    (C {(Lit_Other ':')} 
      {
        (word_part.BracedVarSub
          token: <VSub_Name XTERM_KBS>
          suffix_op: (suffix_op.StringUnary op_id:VTest_Equals arg_word:{(BS)})
          spids: [148 152]
        )
      }
    )
    (command.Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (lhs_expr.LhsName name:TABSET spids:[161])
          op: Equal
          rhs: {(${ VSub_Name datadir) (/tabset)}
          spids: [161]
        )
      ]
      spids: [161]
    )
    (command.If
      arms: [
        (if_arm
          cond: [
            (command.Sentence
              child: 
                (C {(test)} {(DQ (x) ($ VSub_DollarName '$TABSET'))} {(KW_Bang '!') (Lit_Other '=')} 
                  {(DQ (x/usr/share/tabset))}
                )
              terminator: <Op_Semi ';'>
            )
          ]
          action: [
            (command.SimpleCommand
              words: [{(cat)}]
              redirects: [
                (redir.HereDoc
                  op: <Redir_DLess '<<'>
                  fd: 16777215
                  here_begin: {(EOF)}
                  here_end_span_id: 196
                  stdin_parts: [('s%/usr/share/tabset%') ($ VSub_DollarName '$TABSET') ('%g\n')]
                )
              ]
            )
          ]
          spids: [16777215 185]
        )
      ]
      spids: [16777215 197]
    )
    (command.If
      arms: [
        (if_arm
          cond: [
            (command.Sentence
              child: 
                (C {(test)} {(DQ ($ VSub_DollarName '$WHICH_XTERM'))} {(KW_Bang '!') (Lit_Other '=')} 
                  {(DQ (xterm-new))}
                )
              terminator: <Op_Semi ';'>
            )
          ]
          action: [
            (command.SimpleCommand
              words: [
                {(echo)}
                {
                  (DQ ('** using ') ($ VSub_DollarName '$WHICH_XTERM') 
                    (' terminal description for XTerm entry')
                  )
                }
              ]
              redirects: [(redir.Redir op:<Redir_GreatAnd '>&'> fd:16777215 arg_word:{(2)})]
            )
            (command.SimpleCommand
              words: [{(cat)}]
              redirects: [
                (redir.HereDoc
                  op: <Redir_DLess '<<'>
                  fd: 16777215
                  here_begin: {(EOF)}
                  here_end_span_id: 243
                  stdin_parts: [
                    ('/^# This is xterm for ncurses/,/^')
                    (Lit_Other '$')
                    ('/{\n')
                    ('\ts/use=xterm-new,/use=')
                    ($ VSub_DollarName '$WHICH_XTERM')
                    (',/\n')
                    ('}\n')
                  ]
                )
              ]
            )
          ]
          spids: [16777215 217]
        )
      ]
      spids: [16777215 244]
    )
    (command.If
      arms: [
        (if_arm
          cond: [
            (command.Sentence
              child: 
                (C {(test)} {(DQ ($ VSub_DollarName '$XTERM_KBS'))} {(KW_Bang '!') (Lit_Other '=')} 
                  {(DQ (BS))}
                )
              terminator: <Op_Semi ';'>
            )
          ]
          action: [
            (command.SimpleCommand
              words: [{(echo)} {(DQ ('** using DEL for XTerm backspace-key'))}]
              redirects: [(redir.Redir op:<Redir_GreatAnd '>&'> fd:16777215 arg_word:{(2)})]
            )
            (command.SimpleCommand
              words: [{(cat)}]
              redirects: [
                (redir.HereDoc
                  op: <Redir_DLess '<<'>
                  fd: 16777215
                  here_begin: {(EOF)}
                  here_end_span_id: 284
                  stdin_parts: [
                    ('/^xterm+kbs|fragment for backspace key/,/^#/{\n')
                    ('\ts/kbs=^H,/kbs=^?,/\n')
                    ('}\n')
                  ]
                )
              ]
            )
          ]
          spids: [16777215 264]
        )
      ]
      spids: [16777215 285]
    )
    (command.Case
      to_match: {(x) ($ VSub_DollarName '$WHICH_LINUX')}
      arms: [
        (case_arm
          pat_list: [{(xauto)}]
          action: [
            (command.Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (lhs_expr.LhsName name:system spids:[326])
                  op: Equal
                  rhs: 
                    {
                      (word_part.CommandSubPart
                        command_list: 
                          (command.CommandList
                            children: [
                              (command.SimpleCommand
                                words: [{(uname)} {(-s)}]
                                redirects: [
                                  (redir.Redir
                                    op: <Redir_Great '2>'>
                                    fd: 2
                                    arg_word: {(/dev/null)}
                                  )
                                ]
                              )
                            ]
                          )
                        left_token: <Left_Backtick '`'>
                        spids: [327 334]
                      )
                    }
                  spids: [326]
                )
              ]
              spids: [326]
            )
            (command.If
              arms: [
                (if_arm
                  cond: [
                    (C {(test)} {(DQ (x) ($ VSub_DollarName '$system'))} {(Lit_Other '=')} {(xLinux)})
                  ]
                  action: [
                    (command.Case
                      to_match: 
                        {(x) 
                          (word_part.CommandSubPart
                            command_list: (command.CommandList children:[(C {(uname)} {(-r)})])
                            left_token: <Left_Backtick '`'>
                            spids: [357 361]
                          )
                        }
                      arms: [
                        (case_arm
                          pat_list: [{(x1.) (Lit_Other '*')}]
                          action: [
                            (command.Assignment
                              keyword: Assign_None
                              pairs: [
                                (assign_pair
                                  lhs: (lhs_expr.LhsName name:WHICH_LINUX spids:[371])
                                  op: Equal
                                  rhs: {(linux-c)}
                                  spids: [371]
                                )
                              ]
                              spids: [371]
                            )
                          ]
                          spids: [366 368 375 16777215]
                        )
                        (case_arm
                          pat_list: [{(x2.) (Lit_Other '[') (0-4) (Lit_Other ']') (Lit_Other '*')}]
                          action: [
                            (command.Assignment
                              keyword: Assign_None
                              pairs: [
                                (assign_pair
                                  lhs: (lhs_expr.LhsName name:WHICH_LINUX spids:[386])
                                  op: Equal
                                  rhs: {(linux2.2)}
                                  spids: [386]
                                )
                              ]
                              spids: [386]
                            )
                          ]
                          spids: [378 383 390 16777215]
                        )
                        (case_arm
                          pat_list: [{(Lit_Other '*')}]
                          action: [
                            (command.Assignment
                              keyword: Assign_None
                              pairs: [
                                (assign_pair
                                  lhs: (lhs_expr.LhsName name:WHICH_LINUX spids:[397])
                                  op: Equal
                                  rhs: {(linux3.0)}
                                  spids: [397]
                                )
                              ]
                              spids: [397]
                            )
                          ]
                          spids: [393 394 401 16777215]
                        )
                      ]
                      spids: [354 363 404]
                    )
                  ]
                  spids: [16777215 351]
                )
              ]
              else_action: [
                (command.Assignment
                  keyword: Assign_None
                  pairs: [
                    (assign_pair
                      lhs: (lhs_expr.LhsName name:WHICH_LINUX spids:[410])
                      op: Equal
                      rhs: {($ VSub_DollarName '$linux_dft')}
                      spids: [410]
                    )
                  ]
                  spids: [410]
                )
              ]
              spids: [407 414]
            )
          ]
          spids: [322 323 417 16777215]
        )
        (case_arm pat_list:[{(xlinux) (Lit_Other '*')}] spids:[419 421 428 16777215])
        (case_arm
          pat_list: [{(Lit_Other '*')}]
          action: [
            (command.Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (lhs_expr.LhsName name:WHICH_LINUX spids:[434])
                  op: Equal
                  rhs: {($ VSub_DollarName '$linux_dft')}
                  spids: [434]
                )
              ]
              spids: [434]
            )
          ]
          spids: [430 431 438 16777215]
        )
      ]
      spids: [312 317 440]
    )
    (command.If
      arms: [
        (if_arm
          cond: [
            (C {(test)} {($ VSub_DollarName '$WHICH_LINUX')} {(KW_Bang '!') (Lit_Other '=')} 
              {($ VSub_DollarName '$linux_dft')}
            )
          ]
          action: [
            (command.SimpleCommand
              words: [
                {(echo)}
                {
                  (DQ ('** using ') ($ VSub_DollarName '$WHICH_LINUX') 
                    (' terminal description for Linux console')
                  )
                }
              ]
              redirects: [(redir.Redir op:<Redir_GreatAnd '>&'> fd:16777215 arg_word:{(2)})]
            )
            (command.SimpleCommand
              words: [{(cat)}]
              redirects: [
                (redir.HereDoc
                  op: <Redir_DLess '<<'>
                  fd: 16777215
                  here_begin: {(EOF)}
                  here_end_span_id: 482
                  stdin_parts: [
                    ('/^# This is Linux console for ncurses/,/^')
                    (Lit_Other '$')
                    ('/{\n')
                    ('\ts/use=')
                    ($ VSub_DollarName '$linux_dft')
                    (',/use=')
                    ($ VSub_DollarName '$WHICH_LINUX')
                    (',/\n')
                    ('}\n')
                  ]
                )
              ]
            )
          ]
          spids: [16777215 454]
        )
      ]
      spids: [16777215 483]
    )
  ]
)