(CommandList
  children: [
    (C {(set)} {(-e)})
    (CommandList
      children: [
        (Sentence
          child: 
            (Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (LhsName name:common_objpfx)
                  op: Equal
                  rhs: {($ VSub_Number '$1')}
                  spids: [54]
                )
              ]
              spids: [54]
            )
          terminator: <Op_Semi ';'>
        )
        (C {(shift)})
      ]
    )
    (CommandList
      children: [
        (Sentence
          child: 
            (Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (LhsName name:test_via_rtld_prefix)
                  op: Equal
                  rhs: {($ VSub_Number '$1')}
                  spids: [60]
                )
              ]
              spids: [60]
            )
          terminator: <Op_Semi ';'>
        )
        (C {(shift)})
      ]
    )
    (CommandList
      children: [
        (Sentence
          child: 
            (Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (LhsName name:test_program_prefix)
                  op: Equal
                  rhs: {($ VSub_Number '$1')}
                  spids: [66]
                )
              ]
              spids: [66]
            )
          terminator: <Op_Semi ';'>
        )
        (C {(shift)})
      ]
    )
    (CommandList
      children: [
        (Sentence
          child: 
            (Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (LhsName name:test_wrapper_env)
                  op: Equal
                  rhs: {($ VSub_Number '$1')}
                  spids: [72]
                )
              ]
              spids: [72]
            )
          terminator: <Op_Semi ';'>
        )
        (C {(shift)})
      ]
    )
    (Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (LhsName name:logfile)
          op: Equal
          rhs: {($ VSub_Name '$common_objpfx') (/posix/globtest.out)}
          spids: [78]
        )
      ]
      spids: [78]
    )
    (Assignment
      keyword: Assign_None
      pairs: [(assign_pair lhs:(LhsName name:CMP) op:Equal rhs:{(DQ ('diff -u'))} spids:[86])]
      spids: [86]
    )
    (Case
      to_match: {(DQ ($ VSub_Name '$common_objpfx'))}
      arms: [
        (case_arm
          pat_list: [{(.) (Lit_Other '*')}]
          action: [
            (Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (LhsName name:common_objpfx)
                  op: Equal
                  rhs: 
                    {
                      (DQ 
                        (CommandSubPart
                          command_list: (CommandList children:[(C {(pwd)})])
                          left_token: <Left_Backtick '`'>
                          spids: [111 113]
                        ) (/) ($ VSub_Name '$common_objpfx')
                      )
                    }
                  spids: [109]
                )
              ]
              spids: [109]
            )
          ]
          spids: [104 106 119 16777215]
        )
        (case_arm pat_list:[{(Lit_Other '*')}] spids:[122 123 126 16777215])
      ]
      spids: [95 101 128]
    )
    (Assignment
      keyword: Assign_None
      pairs: [(assign_pair lhs:(LhsName name:LC_ALL) op:Equal rhs:{(C)} spids:[134])]
      spids: [134]
    )
    (C {(export)} {(LC_ALL)})
    (Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (LhsName name:testdir)
          op: Equal
          rhs: {(${ VSub_Name common_objpfx) (posix/globtest-dir)}
          spids: [145]
        )
      ]
      spids: [145]
    )
    (Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (LhsName name:testout)
          op: Equal
          rhs: {(${ VSub_Name common_objpfx) (posix/globtest-out)}
          spids: [151]
        )
      ]
      spids: [151]
    )
    (C {(rm)} {(-rf)} {($ VSub_Name '$testdir')} {($ VSub_Name '$testout')})
    (C {(mkdir)} {($ VSub_Name '$testdir')})
    (C {(trap)} {(SQ <'chmod 777 $testdir/noread; rm -fr $testdir $testout'>)} {(1)} {(2)} {(3)} {(15)})
    (SimpleCommand
      words: [{(echo)} {(1)}]
      redirects: [(Redir op:<Redir_Great '>'> fd:16777215 arg_word:{($ VSub_Name '$testdir') (/file1)})]
    )
    (SimpleCommand
      words: [{(echo)} {(2)}]
      redirects: [(Redir op:<Redir_Great '>'> fd:16777215 arg_word:{($ VSub_Name '$testdir') (/file2)})]
    )
    (SimpleCommand
      words: [{(echo)} {(3)}]
      redirects: [
        (Redir op:<Redir_Great '>'> fd:16777215 arg_word:{($ VSub_Name '$testdir') (/-file3)})
      ]
    )
    (SimpleCommand
      words: [{(echo)} {(4)}]
      redirects: [
        (Redir
          op: <Redir_Great '>'>
          fd: 16777215
          arg_word: {($ VSub_Name '$testdir') (/) (Lit_TildeLike '~file4')}
        )
      ]
    )
    (SimpleCommand
      words: [{(echo)} {(5)}]
      redirects: [
        (Redir op:<Redir_Great '>'> fd:16777215 arg_word:{($ VSub_Name '$testdir') (/.file5)})
      ]
    )
    (SimpleCommand
      words: [{(echo)} {(6)}]
      redirects: [
        (Redir
          op: <Redir_Great '>'>
          fd: 16777215
          arg_word: {($ VSub_Name '$testdir') (/) (SQ <'*file6'>)}
        )
      ]
    )
    (SimpleCommand
      words: [{(echo)} {(7)}]
      redirects: [
        (Redir
          op: <Redir_Great '>'>
          fd: 16777215
          arg_word: {($ VSub_Name '$testdir') (/) (SQ <'{file7,}'>)}
        )
      ]
    )
    (SimpleCommand
      words: [{(echo)} {(8)}]
      redirects: [
        (Redir
          op: <Redir_Great '>'>
          fd: 16777215
          arg_word: {($ VSub_Name '$testdir') (/) (SQ <'\\{file8\\}'>)}
        )
      ]
    )
    (SimpleCommand
      words: [{(echo)} {(9)}]
      redirects: [
        (Redir
          op: <Redir_Great '>'>
          fd: 16777215
          arg_word: {($ VSub_Name '$testdir') (/) (SQ <'\\{file9\\,file9b\\}'>)}
        )
      ]
    )
    (SimpleCommand
      words: [{(echo)} {(9)}]
      redirects: [
        (Redir
          op: <Redir_Great '>'>
          fd: 16777215
          arg_word: {($ VSub_Name '$testdir') (/) (SQ <'\\file9b\\'>)}
        )
      ]
    )
    (SimpleCommand
      words: [{(echo)} {(a)}]
      redirects: [
        (Redir
          op: <Redir_Great '>'>
          fd: 16777215
          arg_word: {($ VSub_Name '$testdir') (/) (SQ <'filea,'>)}
        )
      ]
    )
    (SimpleCommand
      words: [{(echo)} {(a)}]
      redirects: [
        (Redir
          op: <Redir_Great '>'>
          fd: 16777215
          arg_word: {($ VSub_Name '$testdir') (/) (SQ <'fileb}c'>)}
        )
      ]
    )
    (C {(mkdir)} {($ VSub_Name '$testdir') (/dir1)})
    (C {(mkdir)} {($ VSub_Name '$testdir') (/dir2)})
    (AndOr
      ops: [Op_DPipe]
      children: [
        (C {(test)} {(-d)} {($ VSub_Name '$testdir') (/noread)})
        (C {(mkdir)} {($ VSub_Name '$testdir') (/noread)})
      ]
    )
    (C {(chmod)} {(a-r)} {($ VSub_Name '$testdir') (/noread)})
    (SimpleCommand
      words: [{(echo)} {(1_1)}]
      redirects: [
        (Redir
          op: <Redir_Great '>'>
          fd: 16777215
          arg_word: {($ VSub_Name '$testdir') (/dir1/file1_1)}
        )
      ]
    )
    (SimpleCommand
      words: [{(echo)} {(1_2)}]
      redirects: [
        (Redir
          op: <Redir_Great '>'>
          fd: 16777215
          arg_word: {($ VSub_Name '$testdir') (/dir1/file1_2)}
        )
      ]
    )
    (C {(ln)} {(-fs)} {(dir1)} {($ VSub_Name '$testdir') (/link1)})
    (Assignment
      keyword: Assign_None
      pairs: [(assign_pair lhs:(LhsName name:result) op:Equal rhs:{(0)} spids:[380])]
      spids: [380]
    )
    (C {(rm)} {(-f)} {($ VSub_Name '$logfile')})
    (Assignment
      keyword: Assign_None
      pairs: [(assign_pair lhs:(LhsName name:failed) op:Equal rhs:{(0)} spids:[393])]
      spids: [393]
    )
    (Pipeline
      children: [
        (C {(${ VSub_Name test_program_prefix)} {(${ VSub_Name common_objpfx) (posix/globtest)} 
          {(DQ ($ VSub_Name '$testdir'))} {(DQ ('*'))}
        )
        (SimpleCommand
          words: [{(sort)}]
          redirects: [(Redir op:<Redir_Great '>'> fd:16777215 arg_word:{($ VSub_Name '$testout')})]
        )
      ]
      negated: F
    )
    (AndOr
      ops: [Op_DPipe]
      children: [
        (Pipeline
          children: [
            (SimpleCommand
              words: [{(cat)}]
              redirects: [
                (HereDoc
                  op: <Redir_DLess '<<'>
                  fd: 16777215
                  here_begin: {(DQ (EOF))}
                  here_end_span_id: 461
                  stdin_parts: [
                    ("`*file6'\n")
                    ("`-file3'\n")
                    ("`\\file9b\\'\n")
                    ("`\\{file8\\}'\n")
                    ("`\\{file9\\,file9b\\}'\n")
                    ("`dir1'\n")
                    ("`dir2'\n")
                    ("`file1'\n")
                    ("`file2'\n")
                    ("`filea,'\n")
                    ("`fileb}c'\n")
                    ("`link1'\n")
                    ("`noread'\n")
                    ("`{file7,}'\n")
                    ("`~file4'\n")
                  ]
                )
              ]
            )
            (SimpleCommand
              words: [{($ VSub_Name '$CMP')} {(-)} {($ VSub_Name '$testout')}]
              redirects: [
                (Redir
                  op: <Redir_DGreat '>>'>
                  fd: 16777215
                  arg_word: {($ VSub_Name '$logfile')}
                )
              ]
            )
          ]
          negated: F
        )
        (Assignment
          keyword: Assign_None
          pairs: [(assign_pair lhs:(LhsName name:failed) op:Equal rhs:{(1)} spids:[443])]
          spids: [443]
        )
      ]
    )
    (If
      arms: [
        (if_arm
          cond: [
            (Sentence
              child: (C {(test)} {($ VSub_Name '$failed')} {(-ne)} {(0)})
              terminator: <Op_Semi ';'>
            )
          ]
          action: [
            (SimpleCommand
              words: [{(echo)} {(DQ ('Normal test failed'))}]
              redirects: [
                (Redir
                  op: <Redir_DGreat '>>'>
                  fd: 16777215
                  arg_word: {($ VSub_Name '$logfile')}
                )
              ]
            )
            (Assignment
              keyword: Assign_None
              pairs: [(assign_pair lhs:(LhsName name:result) op:Equal rhs:{(1)} spids:[487])]
              spids: [487]
            )
          ]
          spids: [16777215 473]
        )
      ]
      spids: [16777215 490]
    )
    (Assignment
      keyword: Assign_None
      pairs: [(assign_pair lhs:(LhsName name:failed) op:Equal rhs:{(0)} spids:[496])]
      spids: [496]
    )
    (Pipeline
      children: [
        (C {(${ VSub_Name test_program_prefix)} {(${ VSub_Name common_objpfx) (posix/globtest)} {(-s)} 
          {(DQ ($ VSub_Name '$testdir'))} {(DQ ('*'))}
        )
        (SimpleCommand
          words: [{(sort)}]
          redirects: [(Redir op:<Redir_Great '>'> fd:16777215 arg_word:{($ VSub_Name '$testout')})]
        )
      ]
      negated: F
    )
    (AndOr
      ops: [Op_DPipe]
      children: [
        (Pipeline
          children: [
            (SimpleCommand
              words: [{(cat)}]
              redirects: [
                (HereDoc
                  op: <Redir_DLess '<<'>
                  fd: 16777215
                  here_begin: {(DQ (EOF))}
                  here_end_span_id: 566
                  stdin_parts: [
                    ("`*file6'\n")
                    ("`-file3'\n")
                    ("`\\file9b\\'\n")
                    ("`\\{file8\\}'\n")
                    ("`\\{file9\\,file9b\\}'\n")
                    ("`dir1'\n")
                    ("`dir2'\n")
                    ("`file1'\n")
                    ("`file2'\n")
                    ("`filea,'\n")
                    ("`fileb}c'\n")
                    ("`link1'\n")
                    ("`noread'\n")
                    ("`{file7,}'\n")
                    ("`~file4'\n")
                  ]
                )
              ]
            )
            (SimpleCommand
              words: [{($ VSub_Name '$CMP')} {(-)} {($ VSub_Name '$testout')}]
              redirects: [
                (Redir
                  op: <Redir_DGreat '>>'>
                  fd: 16777215
                  arg_word: {($ VSub_Name '$logfile')}
                )
              ]
            )
          ]
          negated: F
        )
        (Assignment
          keyword: Assign_None
          pairs: [(assign_pair lhs:(LhsName name:failed) op:Equal rhs:{(1)} spids:[548])]
          spids: [548]
        )
      ]
    )
    (If
      arms: [
        (if_arm
          cond: [
            (Sentence
              child: (C {(test)} {($ VSub_Name '$failed')} {(-ne)} {(0)})
              terminator: <Op_Semi ';'>
            )
          ]
          action: [
            (SimpleCommand
              words: [{(echo)} {(DQ ('No sort test failed'))}]
              redirects: [
                (Redir
                  op: <Redir_DGreat '>>'>
                  fd: 16777215
                  arg_word: {($ VSub_Name '$logfile')}
                )
              ]
            )
            (Assignment
              keyword: Assign_None
              pairs: [(assign_pair lhs:(LhsName name:result) op:Equal rhs:{(1)} spids:[592])]
              spids: [592]
            )
          ]
          spids: [16777215 578]
        )
      ]
      spids: [16777215 595]
    )
    (Assignment
      keyword: Assign_None
      pairs: [(assign_pair lhs:(LhsName name:failed) op:Equal rhs:{(0)} spids:[601])]
      spids: [601]
    )
    (Pipeline
      children: [
        (C {(${ VSub_Name test_program_prefix)} {(${ VSub_Name common_objpfx) (posix/globtest)} {(-m)} 
          {(DQ ($ VSub_Name '$testdir'))} {(DQ ('*'))}
        )
        (SimpleCommand
          words: [{(sort)}]
          redirects: [(Redir op:<Redir_Great '>'> fd:16777215 arg_word:{($ VSub_Name '$testout')})]
        )
      ]
      negated: F
    )
    (AndOr
      ops: [Op_DPipe]
      children: [
        (Pipeline
          children: [
            (SimpleCommand
              words: [{(cat)}]
              redirects: [
                (HereDoc
                  op: <Redir_DLess '<<'>
                  fd: 16777215
                  here_begin: {(DQ (EOF))}
                  here_end_span_id: 671
                  stdin_parts: [
                    ("`*file6'\n")
                    ("`-file3'\n")
                    ("`\\file9b\\'\n")
                    ("`\\{file8\\}'\n")
                    ("`\\{file9\\,file9b\\}'\n")
                    ("`dir1/'\n")
                    ("`dir2/'\n")
                    ("`file1'\n")
                    ("`file2'\n")
                    ("`filea,'\n")
                    ("`fileb}c'\n")
                    ("`link1/'\n")
                    ("`noread/'\n")
                    ("`{file7,}'\n")
                    ("`~file4'\n")
                  ]
                )
              ]
            )
            (SimpleCommand
              words: [{($ VSub_Name '$CMP')} {(-)} {($ VSub_Name '$testout')}]
              redirects: [
                (Redir
                  op: <Redir_DGreat '>>'>
                  fd: 16777215
                  arg_word: {($ VSub_Name '$logfile')}
                )
              ]
            )
          ]
          negated: F
        )
        (Assignment
          keyword: Assign_None
          pairs: [(assign_pair lhs:(LhsName name:failed) op:Equal rhs:{(1)} spids:[653])]
          spids: [653]
        )
      ]
    )
    (If
      arms: [
        (if_arm
          cond: [
            (Sentence
              child: (C {(test)} {($ VSub_Name '$failed')} {(-ne)} {(0)})
              terminator: <Op_Semi ';'>
            )
          ]
          action: [
            (SimpleCommand
              words: [{(echo)} {(DQ ('Mark directories test failed'))}]
              redirects: [
                (Redir
                  op: <Redir_DGreat '>>'>
                  fd: 16777215
                  arg_word: {($ VSub_Name '$logfile')}
                )
              ]
            )
            (Assignment
              keyword: Assign_None
              pairs: [(assign_pair lhs:(LhsName name:result) op:Equal rhs:{(1)} spids:[697])]
              spids: [697]
            )
          ]
          spids: [16777215 683]
        )
      ]
      spids: [16777215 700]
    )
    (Assignment
      keyword: Assign_None
      pairs: [(assign_pair lhs:(LhsName name:failed) op:Equal rhs:{(0)} spids:[706])]
      spids: [706]
    )
    (Pipeline
      children: [
        (C {(${ VSub_Name test_program_prefix)} {(${ VSub_Name common_objpfx) (posix/globtest)} {(-p)} 
          {(DQ ($ VSub_Name '$testdir'))} {(DQ ('*'))}
        )
        (SimpleCommand
          words: [{(sort)}]
          redirects: [(Redir op:<Redir_Great '>'> fd:16777215 arg_word:{($ VSub_Name '$testout')})]
        )
      ]
      negated: F
    )
    (AndOr
      ops: [Op_DPipe]
      children: [
        (Pipeline
          children: [
            (SimpleCommand
              words: [{(cat)}]
              redirects: [
                (HereDoc
                  op: <Redir_DLess '<<'>
                  fd: 16777215
                  here_begin: {(DQ (EOF))}
                  here_end_span_id: 779
                  stdin_parts: [
                    ("`*file6'\n")
                    ("`-file3'\n")
                    ("`.'\n")
                    ("`..'\n")
                    ("`.file5'\n")
                    ("`\\file9b\\'\n")
                    ("`\\{file8\\}'\n")
                    ("`\\{file9\\,file9b\\}'\n")
                    ("`dir1'\n")
                    ("`dir2'\n")
                    ("`file1'\n")
                    ("`file2'\n")
                    ("`filea,'\n")
                    ("`fileb}c'\n")
                    ("`link1'\n")
                    ("`noread'\n")
                    ("`{file7,}'\n")
                    ("`~file4'\n")
                  ]
                )
              ]
            )
            (SimpleCommand
              words: [{($ VSub_Name '$CMP')} {(-)} {($ VSub_Name '$testout')}]
              redirects: [
                (Redir
                  op: <Redir_DGreat '>>'>
                  fd: 16777215
                  arg_word: {($ VSub_Name '$logfile')}
                )
              ]
            )
          ]
          negated: F
        )
        (Assignment
          keyword: Assign_None
          pairs: [(assign_pair lhs:(LhsName name:failed) op:Equal rhs:{(1)} spids:[758])]
          spids: [758]
        )
      ]
    )
    (If
      arms: [
        (if_arm
          cond: [
            (Sentence
              child: (C {(test)} {($ VSub_Name '$failed')} {(-ne)} {(0)})
              terminator: <Op_Semi ';'>
            )
          ]
          action: [
            (SimpleCommand
              words: [{(echo)} {(DQ ('Leading period test failed'))}]
              redirects: [
                (Redir
                  op: <Redir_DGreat '>>'>
                  fd: 16777215
                  arg_word: {($ VSub_Name '$logfile')}
                )
              ]
            )
            (Assignment
              keyword: Assign_None
              pairs: [(assign_pair lhs:(LhsName name:result) op:Equal rhs:{(1)} spids:[805])]
              spids: [805]
            )
          ]
          spids: [16777215 791]
        )
      ]
      spids: [16777215 808]
    )
    (Assignment
      keyword: Assign_None
      pairs: [(assign_pair lhs:(LhsName name:failed) op:Equal rhs:{(0)} spids:[814])]
      spids: [814]
    )
    (Pipeline
      children: [
        (C {(${ VSub_Name test_program_prefix)} {(${ VSub_Name common_objpfx) (posix/globtest)} {(-b)} 
          {(DQ ($ VSub_Name '$testdir'))} {(DQ ('file{1,2}'))}
        )
        (SimpleCommand
          words: [{(sort)}]
          redirects: [(Redir op:<Redir_Great '>'> fd:16777215 arg_word:{($ VSub_Name '$testout')})]
        )
      ]
      negated: F
    )
    (AndOr
      ops: [Op_DPipe]
      children: [
        (Pipeline
          children: [
            (SimpleCommand
              words: [{(cat)}]
              redirects: [
                (HereDoc
                  op: <Redir_DLess '<<'>
                  fd: 16777215
                  here_begin: {(DQ (EOF))}
                  here_end_span_id: 871
                  stdin_parts: [("`file1'\n") ("`file2'\n")]
                )
              ]
            )
            (SimpleCommand
              words: [{($ VSub_Name '$CMP')} {(-)} {($ VSub_Name '$testout')}]
              redirects: [
                (Redir
                  op: <Redir_DGreat '>>'>
                  fd: 16777215
                  arg_word: {($ VSub_Name '$logfile')}
                )
              ]
            )
          ]
          negated: F
        )
        (Assignment
          keyword: Assign_None
          pairs: [(assign_pair lhs:(LhsName name:failed) op:Equal rhs:{(1)} spids:[866])]
          spids: [866]
        )
      ]
    )
    (If
      arms: [
        (if_arm
          cond: [
            (Sentence
              child: (C {(test)} {($ VSub_Name '$failed')} {(-ne)} {(0)})
              terminator: <Op_Semi ';'>
            )
          ]
          action: [
            (SimpleCommand
              words: [{(echo)} {(DQ ('Braces test failed'))}]
              redirects: [
                (Redir
                  op: <Redir_DGreat '>>'>
                  fd: 16777215
                  arg_word: {($ VSub_Name '$logfile')}
                )
              ]
            )
            (Assignment
              keyword: Assign_None
              pairs: [(assign_pair lhs:(LhsName name:result) op:Equal rhs:{(1)} spids:[897])]
              spids: [897]
            )
          ]
          spids: [16777215 883]
        )
      ]
      spids: [16777215 900]
    )
    (Assignment
      keyword: Assign_None
      pairs: [(assign_pair lhs:(LhsName name:failed) op:Equal rhs:{(0)} spids:[903])]
      spids: [903]
    )
    (Pipeline
      children: [
        (C {(${ VSub_Name test_program_prefix)} {(${ VSub_Name common_objpfx) (posix/globtest)} {(-b)} 
          {(DQ ($ VSub_Name '$testdir'))} {(DQ ('{file{1,2},-file3}'))}
        )
        (SimpleCommand
          words: [{(sort)}]
          redirects: [(Redir op:<Redir_Great '>'> fd:16777215 arg_word:{($ VSub_Name '$testout')})]
        )
      ]
      negated: F
    )
    (AndOr
      ops: [Op_DPipe]
      children: [
        (Pipeline
          children: [
            (SimpleCommand
              words: [{(cat)}]
              redirects: [
                (HereDoc
                  op: <Redir_DLess '<<'>
                  fd: 16777215
                  here_begin: {(DQ (EOF))}
                  here_end_span_id: 961
                  stdin_parts: [("`-file3'\n") ("`file1'\n") ("`file2'\n")]
                )
              ]
            )
            (SimpleCommand
              words: [{($ VSub_Name '$CMP')} {(-)} {($ VSub_Name '$testout')}]
              redirects: [
                (Redir
                  op: <Redir_DGreat '>>'>
                  fd: 16777215
                  arg_word: {($ VSub_Name '$logfile')}
                )
              ]
            )
          ]
          negated: F
        )
        (Assignment
          keyword: Assign_None
          pairs: [(assign_pair lhs:(LhsName name:failed) op:Equal rhs:{(1)} spids:[955])]
          spids: [955]
        )
      ]
    )
    (If
      arms: [
        (if_arm
          cond: [
            (Sentence
              child: (C {(test)} {($ VSub_Name '$failed')} {(-ne)} {(0)})
              terminator: <Op_Semi ';'>
            )
          ]
          action: [
            (SimpleCommand
              words: [{(echo)} {(DQ ('Braces test 2 failed'))}]
              redirects: [
                (Redir
                  op: <Redir_DGreat '>>'>
                  fd: 16777215
                  arg_word: {($ VSub_Name '$logfile')}
                )
              ]
            )
            (Assignment
              keyword: Assign_None
              pairs: [(assign_pair lhs:(LhsName name:result) op:Equal rhs:{(1)} spids:[987])]
              spids: [987]
            )
          ]
          spids: [16777215 973]
        )
      ]
      spids: [16777215 990]
    )
    (Assignment
      keyword: Assign_None
      pairs: [(assign_pair lhs:(LhsName name:failed) op:Equal rhs:{(0)} spids:[993])]
      spids: [993]
    )
    (Pipeline
      children: [
        (C {(${ VSub_Name test_program_prefix)} {(${ VSub_Name common_objpfx) (posix/globtest)} {(-b)} 
          {(DQ ($ VSub_Name '$testdir'))} {(DQ ('{'))}
        )
        (SimpleCommand
          words: [{(sort)}]
          redirects: [(Redir op:<Redir_Great '>'> fd:16777215 arg_word:{($ VSub_Name '$testout')})]
        )
      ]
      negated: F
    )
    (AndOr
      ops: [Op_DPipe]
      children: [
        (Pipeline
          children: [
            (SimpleCommand
              words: [{(cat)}]
              redirects: [
                (HereDoc
                  op: <Redir_DLess '<<'>
                  fd: 16777215
                  here_begin: {(DQ (EOF))}
                  here_end_span_id: 1049
                  stdin_parts: [('GLOB_NOMATCH\n')]
                )
              ]
            )
            (SimpleCommand
              words: [{($ VSub_Name '$CMP')} {(-)} {($ VSub_Name '$testout')}]
              redirects: [
                (Redir
                  op: <Redir_DGreat '>>'>
                  fd: 16777215
                  arg_word: {($ VSub_Name '$logfile')}
                )
              ]
            )
          ]
          negated: F
        )
        (Assignment
          keyword: Assign_None
          pairs: [(assign_pair lhs:(LhsName name:failed) op:Equal rhs:{(1)} spids:[1045])]
          spids: [1045]
        )
      ]
    )
    (If
      arms: [
        (if_arm
          cond: [
            (Sentence
              child: (C {(test)} {($ VSub_Name '$failed')} {(-ne)} {(0)})
              terminator: <Op_Semi ';'>
            )
          ]
          action: [
            (SimpleCommand
              words: [{(echo)} {(DQ ('Braces test 3 failed'))}]
              redirects: [
                (Redir
                  op: <Redir_DGreat '>>'>
                  fd: 16777215
                  arg_word: {($ VSub_Name '$logfile')}
                )
              ]
            )
            (Assignment
              keyword: Assign_None
              pairs: [(assign_pair lhs:(LhsName name:result) op:Equal rhs:{(1)} spids:[1075])]
              spids: [1075]
            )
          ]
          spids: [16777215 1061]
        )
      ]
      spids: [16777215 1078]
    )
    (Assignment
      keyword: Assign_None
      pairs: [(assign_pair lhs:(LhsName name:failed) op:Equal rhs:{(0)} spids:[1084])]
      spids: [1084]
    )
    (Pipeline
      children: [
        (C {(${ VSub_Name test_program_prefix)} {(${ VSub_Name common_objpfx) (posix/globtest)} {(-c)} 
          {(DQ ($ VSub_Name '$testdir'))} {(DQ (abc))}
        )
        (SimpleCommand
          words: [{(sort)}]
          redirects: [(Redir op:<Redir_Great '>'> fd:16777215 arg_word:{($ VSub_Name '$testout')})]
        )
      ]
      negated: F
    )
    (AndOr
      ops: [Op_DPipe]
      children: [
        (Pipeline
          children: [
            (SimpleCommand
              words: [{(cat)}]
              redirects: [
                (HereDoc
                  op: <Redir_DLess '<<'>
                  fd: 16777215
                  here_begin: {(DQ (EOF))}
                  here_end_span_id: 1140
                  stdin_parts: [("`abc'\n")]
                )
              ]
            )
            (SimpleCommand
              words: [{($ VSub_Name '$CMP')} {(-)} {($ VSub_Name '$testout')}]
              redirects: [
                (Redir
                  op: <Redir_DGreat '>>'>
                  fd: 16777215
                  arg_word: {($ VSub_Name '$logfile')}
                )
              ]
            )
          ]
          negated: F
        )
        (Assignment
          keyword: Assign_None
          pairs: [(assign_pair lhs:(LhsName name:failed) op:Equal rhs:{(1)} spids:[1136])]
          spids: [1136]
        )
      ]
    )
    (If
      arms: [
        (if_arm
          cond: [
            (Sentence
              child: (C {(test)} {($ VSub_Name '$failed')} {(-ne)} {(0)})
              terminator: <Op_Semi ';'>
            )
          ]
          action: [
            (SimpleCommand
              words: [{(echo)} {(DQ ('No check test failed'))}]
              redirects: [
                (Redir
                  op: <Redir_DGreat '>>'>
                  fd: 16777215
                  arg_word: {($ VSub_Name '$logfile')}
                )
              ]
            )
            (Assignment
              keyword: Assign_None
              pairs: [(assign_pair lhs:(LhsName name:result) op:Equal rhs:{(1)} spids:[1166])]
              spids: [1166]
            )
          ]
          spids: [16777215 1152]
        )
      ]
      spids: [16777215 1169]
    )
    (Assignment
      keyword: Assign_None
      pairs: [(assign_pair lhs:(LhsName name:failed) op:Equal rhs:{(0)} spids:[1175])]
      spids: [1175]
    )
    (Pipeline
      children: [
        (C {(${ VSub_Name test_program_prefix)} {(${ VSub_Name common_objpfx) (posix/globtest)} {(-g)} 
          {(DQ ($ VSub_Name '$testdir'))} {(DQ (abc))}
        )
        (SimpleCommand
          words: [{(sort)}]
          redirects: [(Redir op:<Redir_Great '>'> fd:16777215 arg_word:{($ VSub_Name '$testout')})]
        )
      ]
      negated: F
    )
    (AndOr
      ops: [Op_DPipe]
      children: [
        (Pipeline
          children: [
            (SimpleCommand
              words: [{(cat)}]
              redirects: [
                (HereDoc
                  op: <Redir_DLess '<<'>
                  fd: 16777215
                  here_begin: {(DQ (EOF))}
                  here_end_span_id: 1231
                  stdin_parts: [("`abc'\n")]
                )
              ]
            )
            (SimpleCommand
              words: [{($ VSub_Name '$CMP')} {(-)} {($ VSub_Name '$testout')}]
              redirects: [
                (Redir
                  op: <Redir_DGreat '>>'>
                  fd: 16777215
                  arg_word: {($ VSub_Name '$logfile')}
                )
              ]
            )
          ]
          negated: F
        )
        (Assignment
          keyword: Assign_None
          pairs: [(assign_pair lhs:(LhsName name:failed) op:Equal rhs:{(1)} spids:[1227])]
          spids: [1227]
        )
      ]
    )
    (If
      arms: [
        (if_arm
          cond: [
            (Sentence
              child: (C {(test)} {($ VSub_Name '$failed')} {(-ne)} {(0)})
              terminator: <Op_Semi ';'>
            )
          ]
          action: [
            (SimpleCommand
              words: [{(echo)} {(DQ ('No magic test failed'))}]
              redirects: [
                (Redir
                  op: <Redir_DGreat '>>'>
                  fd: 16777215
                  arg_word: {($ VSub_Name '$logfile')}
                )
              ]
            )
            (Assignment
              keyword: Assign_None
              pairs: [(assign_pair lhs:(LhsName name:result) op:Equal rhs:{(1)} spids:[1257])]
              spids: [1257]
            )
          ]
          spids: [16777215 1243]
        )
      ]
      spids: [16777215 1260]
    )
    (Assignment
      keyword: Assign_None
      pairs: [(assign_pair lhs:(LhsName name:failed) op:Equal rhs:{(0)} spids:[1266])]
      spids: [1266]
    )
    (Pipeline
      children: [
        (C {(${ VSub_Name test_program_prefix)} {(${ VSub_Name common_objpfx) (posix/globtest)} {(-g)} 
          {(DQ ($ VSub_Name '$testdir'))} {(DQ ('abc*'))}
        )
        (SimpleCommand
          words: [{(sort)}]
          redirects: [(Redir op:<Redir_Great '>'> fd:16777215 arg_word:{($ VSub_Name '$testout')})]
        )
      ]
      negated: F
    )
    (AndOr
      ops: [Op_DPipe]
      children: [
        (Pipeline
          children: [
            (SimpleCommand
              words: [{(cat)}]
              redirects: [
                (HereDoc
                  op: <Redir_DLess '<<'>
                  fd: 16777215
                  here_begin: {(DQ (EOF))}
                  here_end_span_id: 1322
                  stdin_parts: [('GLOB_NOMATCH\n')]
                )
              ]
            )
            (SimpleCommand
              words: [{($ VSub_Name '$CMP')} {(-)} {($ VSub_Name '$testout')}]
              redirects: [
                (Redir
                  op: <Redir_DGreat '>>'>
                  fd: 16777215
                  arg_word: {($ VSub_Name '$logfile')}
                )
              ]
            )
          ]
          negated: F
        )
        (Assignment
          keyword: Assign_None
          pairs: [(assign_pair lhs:(LhsName name:failed) op:Equal rhs:{(1)} spids:[1318])]
          spids: [1318]
        )
      ]
    )
    (If
      arms: [
        (if_arm
          cond: [
            (Sentence
              child: (C {(test)} {($ VSub_Name '$failed')} {(-ne)} {(0)})
              terminator: <Op_Semi ';'>
            )
          ]
          action: [
            (SimpleCommand
              words: [{(echo)} {(DQ ('No magic w/ magic chars test failed'))}]
              redirects: [
                (Redir
                  op: <Redir_DGreat '>>'>
                  fd: 16777215
                  arg_word: {($ VSub_Name '$logfile')}
                )
              ]
            )
            (Assignment
              keyword: Assign_None
              pairs: [(assign_pair lhs:(LhsName name:result) op:Equal rhs:{(1)} spids:[1348])]
              spids: [1348]
            )
          ]
          spids: [16777215 1334]
        )
      ]
      spids: [16777215 1351]
    )
    (Assignment
      keyword: Assign_None
      pairs: [(assign_pair lhs:(LhsName name:failed) op:Equal rhs:{(0)} spids:[1357])]
      spids: [1357]
    )
    (Pipeline
      children: [
        (C {(${ VSub_Name test_program_prefix)} {(${ VSub_Name common_objpfx) (posix/globtest)} {(-g)} 
          {(DQ ($ VSub_Name '$testdir'))} {(DQ ('*/does-not-exist'))}
        )
        (SimpleCommand
          words: [{(sort)}]
          redirects: [(Redir op:<Redir_Great '>'> fd:16777215 arg_word:{($ VSub_Name '$testout')})]
        )
      ]
      negated: F
    )
    (AndOr
      ops: [Op_DPipe]
      children: [
        (Pipeline
          children: [
            (SimpleCommand
              words: [{(cat)}]
              redirects: [
                (HereDoc
                  op: <Redir_DLess '<<'>
                  fd: 16777215
                  here_begin: {(DQ (EOF))}
                  here_end_span_id: 1413
                  stdin_parts: [('GLOB_NOMATCH\n')]
                )
              ]
            )
            (SimpleCommand
              words: [{($ VSub_Name '$CMP')} {(-)} {($ VSub_Name '$testout')}]
              redirects: [
                (Redir
                  op: <Redir_DGreat '>>'>
                  fd: 16777215
                  arg_word: {($ VSub_Name '$logfile')}
                )
              ]
            )
          ]
          negated: F
        )
        (Assignment
          keyword: Assign_None
          pairs: [(assign_pair lhs:(LhsName name:failed) op:Equal rhs:{(1)} spids:[1409])]
          spids: [1409]
        )
      ]
    )
    (If
      arms: [
        (if_arm
          cond: [
            (Sentence
              child: (C {(test)} {($ VSub_Name '$failed')} {(-ne)} {(0)})
              terminator: <Op_Semi ';'>
            )
          ]
          action: [
            (SimpleCommand
              words: [{(echo)} {(DQ ('No magic in subdir test failed'))}]
              redirects: [
                (Redir
                  op: <Redir_DGreat '>>'>
                  fd: 16777215
                  arg_word: {($ VSub_Name '$logfile')}
                )
              ]
            )
            (Assignment
              keyword: Assign_None
              pairs: [(assign_pair lhs:(LhsName name:result) op:Equal rhs:{(1)} spids:[1439])]
              spids: [1439]
            )
          ]
          spids: [16777215 1425]
        )
      ]
      spids: [16777215 1442]
    )
    (Assignment
      keyword: Assign_None
      pairs: [(assign_pair lhs:(LhsName name:failed) op:Equal rhs:{(0)} spids:[1448])]
      spids: [1448]
    )
    (Pipeline
      children: [
        (C {(${ VSub_Name test_program_prefix)} {(${ VSub_Name common_objpfx) (posix/globtest)} 
          {(DQ ($ VSub_Name '$testdir'))} {(DQ ('*/*'))}
        )
        (SimpleCommand
          words: [{(sort)}]
          redirects: [(Redir op:<Redir_Great '>'> fd:16777215 arg_word:{($ VSub_Name '$testout')})]
        )
      ]
      negated: F
    )
    (AndOr
      ops: [Op_DPipe]
      children: [
        (Pipeline
          children: [
            (SimpleCommand
              words: [{(cat)}]
              redirects: [
                (HereDoc
                  op: <Redir_DLess '<<'>
                  fd: 16777215
                  here_begin: {(DQ (EOF))}
                  here_end_span_id: 1505
                  stdin_parts: [
                    ("`dir1/file1_1'\n")
                    ("`dir1/file1_2'\n")
                    ("`link1/file1_1'\n")
                    ("`link1/file1_2'\n")
                  ]
                )
              ]
            )
            (SimpleCommand
              words: [{($ VSub_Name '$CMP')} {(-)} {($ VSub_Name '$testout')}]
              redirects: [
                (Redir
                  op: <Redir_DGreat '>>'>
                  fd: 16777215
                  arg_word: {($ VSub_Name '$logfile')}
                )
              ]
            )
          ]
          negated: F
        )
        (Assignment
          keyword: Assign_None
          pairs: [(assign_pair lhs:(LhsName name:failed) op:Equal rhs:{(1)} spids:[1498])]
          spids: [1498]
        )
      ]
    )
    (If
      arms: [
        (if_arm
          cond: [
            (Sentence
              child: (C {(test)} {($ VSub_Name '$failed')} {(-ne)} {(0)})
              terminator: <Op_Semi ';'>
            )
          ]
          action: [
            (SimpleCommand
              words: [{(echo)} {(DQ ('Subdirs test failed'))}]
              redirects: [
                (Redir
                  op: <Redir_DGreat '>>'>
                  fd: 16777215
                  arg_word: {($ VSub_Name '$logfile')}
                )
              ]
            )
            (Assignment
              keyword: Assign_None
              pairs: [(assign_pair lhs:(LhsName name:result) op:Equal rhs:{(1)} spids:[1531])]
              spids: [1531]
            )
          ]
          spids: [16777215 1517]
        )
      ]
      spids: [16777215 1534]
    )
    (Assignment
      keyword: Assign_None
      pairs: [(assign_pair lhs:(LhsName name:failed) op:Equal rhs:{(0)} spids:[1540])]
      spids: [1540]
    )
    (Pipeline
      children: [
        (C {(${ VSub_Name test_program_prefix)} {(${ VSub_Name common_objpfx) (posix/globtest)} 
          {(DQ ($ VSub_Name '$testdir'))} {(DQ ('*/1'))}
        )
        (SimpleCommand
          words: [{(sort)}]
          redirects: [(Redir op:<Redir_Great '>'> fd:16777215 arg_word:{($ VSub_Name '$testout')})]
        )
      ]
      negated: F
    )
    (AndOr
      ops: [Op_DPipe]
      children: [
        (Pipeline
          children: [
            (SimpleCommand
              words: [{(cat)}]
              redirects: [
                (HereDoc
                  op: <Redir_DLess '<<'>
                  fd: 16777215
                  here_begin: {(DQ (EOF))}
                  here_end_span_id: 1594
                  stdin_parts: [('GLOB_NOMATCH\n')]
                )
              ]
            )
            (SimpleCommand
              words: [{($ VSub_Name '$CMP')} {(-)} {($ VSub_Name '$testout')}]
              redirects: [
                (Redir
                  op: <Redir_DGreat '>>'>
                  fd: 16777215
                  arg_word: {($ VSub_Name '$logfile')}
                )
              ]
            )
          ]
          negated: F
        )
        (Assignment
          keyword: Assign_None
          pairs: [(assign_pair lhs:(LhsName name:failed) op:Equal rhs:{(1)} spids:[1590])]
          spids: [1590]
        )
      ]
    )
    (If
      arms: [
        (if_arm
          cond: [
            (Sentence
              child: (C {(test)} {($ VSub_Name '$failed')} {(-ne)} {(0)})
              terminator: <Op_Semi ';'>
            )
          ]
          action: [
            (SimpleCommand
              words: [{(echo)} {(DQ ('Invalid subdir test failed'))}]
              redirects: [
                (Redir
                  op: <Redir_DGreat '>>'>
                  fd: 16777215
                  arg_word: {($ VSub_Name '$logfile')}
                )
              ]
            )
            (Assignment
              keyword: Assign_None
              pairs: [(assign_pair lhs:(LhsName name:result) op:Equal rhs:{(1)} spids:[1620])]
              spids: [1620]
            )
          ]
          spids: [16777215 1606]
        )
      ]
      spids: [16777215 1623]
    )
    (Assignment
      keyword: Assign_None
      pairs: [(assign_pair lhs:(LhsName name:failed) op:Equal rhs:{(0)} spids:[1629])]
      spids: [1629]
    )
    (Pipeline
      children: [
        (C {(${ VSub_Name test_program_prefix)} {(${ VSub_Name common_objpfx) (posix/globtest)} 
          {(DQ ($ VSub_Name '$testdir'))} {(DQ ('*/*1_1'))}
        )
        (SimpleCommand
          words: [{(sort)}]
          redirects: [(Redir op:<Redir_Great '>'> fd:16777215 arg_word:{($ VSub_Name '$testout')})]
        )
      ]
      negated: F
    )
    (AndOr
      ops: [Op_DPipe]
      children: [
        (Pipeline
          children: [
            (SimpleCommand
              words: [{(cat)}]
              redirects: [
                (HereDoc
                  op: <Redir_DLess '<<'>
                  fd: 16777215
                  here_begin: {(DQ (EOF))}
                  here_end_span_id: 1684
                  stdin_parts: [("`dir1/file1_1'\n") ("`link1/file1_1'\n")]
                )
              ]
            )
            (SimpleCommand
              words: [{($ VSub_Name '$CMP')} {(-)} {($ VSub_Name '$testout')}]
              redirects: [
                (Redir
                  op: <Redir_DGreat '>>'>
                  fd: 16777215
                  arg_word: {($ VSub_Name '$logfile')}
                )
              ]
            )
          ]
          negated: F
        )
        (Assignment
          keyword: Assign_None
          pairs: [(assign_pair lhs:(LhsName name:failed) op:Equal rhs:{(1)} spids:[1679])]
          spids: [1679]
        )
      ]
    )
    (If
      arms: [
        (if_arm
          cond: [
            (Sentence
              child: (C {(test)} {($ VSub_Name '$failed')} {(-ne)} {(0)})
              terminator: <Op_Semi ';'>
            )
          ]
          action: [
            (SimpleCommand
              words: [{(echo)} {(DQ ('Wildcard subdir test failed'))}]
              redirects: [
                (Redir
                  op: <Redir_DGreat '>>'>
                  fd: 16777215
                  arg_word: {($ VSub_Name '$logfile')}
                )
              ]
            )
            (Assignment
              keyword: Assign_None
              pairs: [(assign_pair lhs:(LhsName name:result) op:Equal rhs:{(1)} spids:[1710])]
              spids: [1710]
            )
          ]
          spids: [16777215 1696]
        )
      ]
      spids: [16777215 1713]
    )
    (Assignment
      keyword: Assign_None
      pairs: [(assign_pair lhs:(LhsName name:failed) op:Equal rhs:{(0)} spids:[1719])]
      spids: [1719]
    )
    (Pipeline
      children: [
        (C {(${ VSub_Name test_program_prefix)} {(${ VSub_Name common_objpfx) (posix/globtest)} 
          {(DQ ($ VSub_Name '$testdir'))} {(DQ ('*/*?_?'))}
        )
        (SimpleCommand
          words: [{(sort)}]
          redirects: [(Redir op:<Redir_Great '>'> fd:16777215 arg_word:{($ VSub_Name '$testout')})]
        )
      ]
      negated: F
    )
    (AndOr
      ops: [Op_DPipe]
      children: [
        (Pipeline
          children: [
            (SimpleCommand
              words: [{(cat)}]
              redirects: [
                (HereDoc
                  op: <Redir_DLess '<<'>
                  fd: 16777215
                  here_begin: {(DQ (EOF))}
                  here_end_span_id: 1776
                  stdin_parts: [
                    ("`dir1/file1_1'\n")
                    ("`dir1/file1_2'\n")
                    ("`link1/file1_1'\n")
                    ("`link1/file1_2'\n")
                  ]
                )
              ]
            )
            (SimpleCommand
              words: [{($ VSub_Name '$CMP')} {(-)} {($ VSub_Name '$testout')}]
              redirects: [
                (Redir
                  op: <Redir_DGreat '>>'>
                  fd: 16777215
                  arg_word: {($ VSub_Name '$logfile')}
                )
              ]
            )
          ]
          negated: F
        )
        (Assignment
          keyword: Assign_None
          pairs: [(assign_pair lhs:(LhsName name:failed) op:Equal rhs:{(1)} spids:[1769])]
          spids: [1769]
        )
      ]
    )
    (If
      arms: [
        (if_arm
          cond: [
            (Sentence
              child: (C {(test)} {($ VSub_Name '$failed')} {(-ne)} {(0)})
              terminator: <Op_Semi ';'>
            )
          ]
          action: [
            (SimpleCommand
              words: [{(echo)} {(DQ ('Wildcard2 subdir test failed'))}]
              redirects: [
                (Redir
                  op: <Redir_DGreat '>>'>
                  fd: 16777215
                  arg_word: {($ VSub_Name '$logfile')}
                )
              ]
            )
            (Assignment
              keyword: Assign_None
              pairs: [(assign_pair lhs:(LhsName name:result) op:Equal rhs:{(1)} spids:[1802])]
              spids: [1802]
            )
          ]
          spids: [16777215 1788]
        )
      ]
      spids: [16777215 1805]
    )
    (Assignment
      keyword: Assign_None
      pairs: [(assign_pair lhs:(LhsName name:failed) op:Equal rhs:{(0)} spids:[1808])]
      spids: [1808]
    )
    (Pipeline
      children: [
        (C {(${ VSub_Name test_program_prefix)} {(${ VSub_Name common_objpfx) (posix/globtest)} 
          {(DQ ($ VSub_Name '$testdir'))} {(DQ ('*/file1_1'))}
        )
        (SimpleCommand
          words: [{(sort)}]
          redirects: [(Redir op:<Redir_Great '>'> fd:16777215 arg_word:{($ VSub_Name '$testout')})]
        )
      ]
      negated: F
    )
    (AndOr
      ops: [Op_DPipe]
      children: [
        (Pipeline
          children: [
            (SimpleCommand
              words: [{(cat)}]
              redirects: [
                (HereDoc
                  op: <Redir_DLess '<<'>
                  fd: 16777215
                  here_begin: {(DQ (EOF))}
                  here_end_span_id: 1863
                  stdin_parts: [("`dir1/file1_1'\n") ("`link1/file1_1'\n")]
                )
              ]
            )
            (SimpleCommand
              words: [{($ VSub_Name '$CMP')} {(-)} {($ VSub_Name '$testout')}]
              redirects: [
                (Redir
                  op: <Redir_DGreat '>>'>
                  fd: 16777215
                  arg_word: {($ VSub_Name '$logfile')}
                )
              ]
            )
          ]
          negated: F
        )
        (Assignment
          keyword: Assign_None
          pairs: [(assign_pair lhs:(LhsName name:failed) op:Equal rhs:{(1)} spids:[1858])]
          spids: [1858]
        )
      ]
    )
    (If
      arms: [
        (if_arm
          cond: [
            (Sentence
              child: (C {(test)} {($ VSub_Name '$failed')} {(-ne)} {(0)})
              terminator: <Op_Semi ';'>
            )
          ]
          action: [
            (SimpleCommand
              words: [{(echo)} {(DQ ('Wildcard3 subdir test failed'))}]
              redirects: [
                (Redir
                  op: <Redir_DGreat '>>'>
                  fd: 16777215
                  arg_word: {($ VSub_Name '$logfile')}
                )
              ]
            )
            (Assignment
              keyword: Assign_None
              pairs: [(assign_pair lhs:(LhsName name:result) op:Equal rhs:{(1)} spids:[1889])]
              spids: [1889]
            )
          ]
          spids: [16777215 1875]
        )
      ]
      spids: [16777215 1892]
    )
    (Assignment
      keyword: Assign_None
      pairs: [(assign_pair lhs:(LhsName name:failed) op:Equal rhs:{(0)} spids:[1895])]
      spids: [1895]
    )
    (Pipeline
      children: [
        (C {(${ VSub_Name test_program_prefix)} {(${ VSub_Name common_objpfx) (posix/globtest)} 
          {(DQ ($ VSub_Name '$testdir'))} {(DQ ('*-/*'))}
        )
        (SimpleCommand
          words: [{(sort)}]
          redirects: [(Redir op:<Redir_Great '>'> fd:16777215 arg_word:{($ VSub_Name '$testout')})]
        )
      ]
      negated: F
    )
    (AndOr
      ops: [Op_DPipe]
      children: [
        (Pipeline
          children: [
            (SimpleCommand
              words: [{(cat)}]
              redirects: [
                (HereDoc
                  op: <Redir_DLess '<<'>
                  fd: 16777215
                  here_begin: {(DQ (EOF))}
                  here_end_span_id: 1949
                  stdin_parts: [('GLOB_NOMATCH\n')]
                )
              ]
            )
            (SimpleCommand
              words: [{($ VSub_Name '$CMP')} {(-)} {($ VSub_Name '$testout')}]
              redirects: [
                (Redir
                  op: <Redir_DGreat '>>'>
                  fd: 16777215
                  arg_word: {($ VSub_Name '$logfile')}
                )
              ]
            )
          ]
          negated: F
        )
        (Assignment
          keyword: Assign_None
          pairs: [(assign_pair lhs:(LhsName name:failed) op:Equal rhs:{(1)} spids:[1945])]
          spids: [1945]
        )
      ]
    )
    (If
      arms: [
        (if_arm
          cond: [
            (Sentence
              child: (C {(test)} {($ VSub_Name '$failed')} {(-ne)} {(0)})
              terminator: <Op_Semi ';'>
            )
          ]
          action: [
            (SimpleCommand
              words: [{(echo)} {(DQ ('Wildcard4 subdir test failed'))}]
              redirects: [
                (Redir
                  op: <Redir_DGreat '>>'>
                  fd: 16777215
                  arg_word: {($ VSub_Name '$logfile')}
                )
              ]
            )
            (Assignment
              keyword: Assign_None
              pairs: [(assign_pair lhs:(LhsName name:result) op:Equal rhs:{(1)} spids:[1975])]
              spids: [1975]
            )
          ]
          spids: [16777215 1961]
        )
      ]
      spids: [16777215 1978]
    )
    (Assignment
      keyword: Assign_None
      pairs: [(assign_pair lhs:(LhsName name:failed) op:Equal rhs:{(0)} spids:[1981])]
      spids: [1981]
    )
    (Pipeline
      children: [
        (C {(${ VSub_Name test_program_prefix)} {(${ VSub_Name common_objpfx) (posix/globtest)} 
          {(DQ ($ VSub_Name '$testdir'))} {(DQ ('*-'))}
        )
        (SimpleCommand
          words: [{(sort)}]
          redirects: [(Redir op:<Redir_Great '>'> fd:16777215 arg_word:{($ VSub_Name '$testout')})]
        )
      ]
      negated: F
    )
    (AndOr
      ops: [Op_DPipe]
      children: [
        (Pipeline
          children: [
            (SimpleCommand
              words: [{(cat)}]
              redirects: [
                (HereDoc
                  op: <Redir_DLess '<<'>
                  fd: 16777215
                  here_begin: {(DQ (EOF))}
                  here_end_span_id: 2035
                  stdin_parts: [('GLOB_NOMATCH\n')]
                )
              ]
            )
            (SimpleCommand
              words: [{($ VSub_Name '$CMP')} {(-)} {($ VSub_Name '$testout')}]
              redirects: [
                (Redir
                  op: <Redir_DGreat '>>'>
                  fd: 16777215
                  arg_word: {($ VSub_Name '$logfile')}
                )
              ]
            )
          ]
          negated: F
        )
        (Assignment
          keyword: Assign_None
          pairs: [(assign_pair lhs:(LhsName name:failed) op:Equal rhs:{(1)} spids:[2031])]
          spids: [2031]
        )
      ]
    )
    (If
      arms: [
        (if_arm
          cond: [
            (Sentence
              child: (C {(test)} {($ VSub_Name '$failed')} {(-ne)} {(0)})
              terminator: <Op_Semi ';'>
            )
          ]
          action: [
            (SimpleCommand
              words: [{(echo)} {(DQ ('Wildcard5 subdir test failed'))}]
              redirects: [
                (Redir
                  op: <Redir_DGreat '>>'>
                  fd: 16777215
                  arg_word: {($ VSub_Name '$logfile')}
                )
              ]
            )
            (Assignment
              keyword: Assign_None
              pairs: [(assign_pair lhs:(LhsName name:result) op:Equal rhs:{(1)} spids:[2061])]
              spids: [2061]
            )
          ]
          spids: [16777215 2047]
        )
      ]
      spids: [16777215 2064]
    )
    (Assignment
      keyword: Assign_None
      pairs: [(assign_pair lhs:(LhsName name:failed) op:Equal rhs:{(0)} spids:[2070])]
      spids: [2070]
    )
    (Pipeline
      children: [
        (C {(${ VSub_Name test_program_prefix)} {(${ VSub_Name common_objpfx) (posix/globtest)} 
          {(DQ ($ VSub_Name '$testdir'))} {(DQ ('*/*?_?'))}
        )
        (SimpleCommand
          words: [{(sort)}]
          redirects: [(Redir op:<Redir_Great '>'> fd:16777215 arg_word:{($ VSub_Name '$testout')})]
        )
      ]
      negated: F
    )
    (AndOr
      ops: [Op_DPipe]
      children: [
        (Pipeline
          children: [
            (SimpleCommand
              words: [{(cat)}]
              redirects: [
                (HereDoc
                  op: <Redir_DLess '<<'>
                  fd: 16777215
                  here_begin: {(DQ (EOF))}
                  here_end_span_id: 2127
                  stdin_parts: [
                    ("`dir1/file1_1'\n")
                    ("`dir1/file1_2'\n")
                    ("`link1/file1_1'\n")
                    ("`link1/file1_2'\n")
                  ]
                )
              ]
            )
            (SimpleCommand
              words: [{($ VSub_Name '$CMP')} {(-)} {($ VSub_Name '$testout')}]
              redirects: [
                (Redir
                  op: <Redir_DGreat '>>'>
                  fd: 16777215
                  arg_word: {($ VSub_Name '$logfile')}
                )
              ]
            )
          ]
          negated: F
        )
        (Assignment
          keyword: Assign_None
          pairs: [(assign_pair lhs:(LhsName name:failed) op:Equal rhs:{(1)} spids:[2120])]
          spids: [2120]
        )
      ]
    )
    (If
      arms: [
        (if_arm
          cond: [
            (Sentence
              child: (C {(test)} {($ VSub_Name '$failed')} {(-ne)} {(0)})
              terminator: <Op_Semi ';'>
            )
          ]
          action: [
            (SimpleCommand
              words: [{(echo)} {(DQ ('Wildcard6 subdir test failed'))}]
              redirects: [
                (Redir
                  op: <Redir_DGreat '>>'>
                  fd: 16777215
                  arg_word: {($ VSub_Name '$logfile')}
                )
              ]
            )
            (Assignment
              keyword: Assign_None
              pairs: [(assign_pair lhs:(LhsName name:result) op:Equal rhs:{(1)} spids:[2153])]
              spids: [2153]
            )
          ]
          spids: [16777215 2139]
        )
      ]
      spids: [16777215 2156]
    )
    (Assignment
      keyword: Assign_None
      pairs: [(assign_pair lhs:(LhsName name:failed) op:Equal rhs:{(0)} spids:[2162])]
      spids: [2162]
    )
    (Pipeline
      children: [
        (C {(${ VSub_Name test_program_prefix)} {(${ VSub_Name common_objpfx) (posix/globtest)} 
          {(DQ ($ VSub_Name '$testdir'))} {(DQ ('*/file1_[12]'))}
        )
        (SimpleCommand
          words: [{(sort)}]
          redirects: [(Redir op:<Redir_Great '>'> fd:16777215 arg_word:{($ VSub_Name '$testout')})]
        )
      ]
      negated: F
    )
    (AndOr
      ops: [Op_DPipe]
      children: [
        (Pipeline
          children: [
            (SimpleCommand
              words: [{(cat)}]
              redirects: [
                (HereDoc
                  op: <Redir_DLess '<<'>
                  fd: 16777215
                  here_begin: {(DQ (EOF))}
                  here_end_span_id: 2219
                  stdin_parts: [
                    ("`dir1/file1_1'\n")
                    ("`dir1/file1_2'\n")
                    ("`link1/file1_1'\n")
                    ("`link1/file1_2'\n")
                  ]
                )
              ]
            )
            (SimpleCommand
              words: [{($ VSub_Name '$CMP')} {(-)} {($ VSub_Name '$testout')}]
              redirects: [
                (Redir
                  op: <Redir_DGreat '>>'>
                  fd: 16777215
                  arg_word: {($ VSub_Name '$logfile')}
                )
              ]
            )
          ]
          negated: F
        )
        (Assignment
          keyword: Assign_None
          pairs: [(assign_pair lhs:(LhsName name:failed) op:Equal rhs:{(1)} spids:[2212])]
          spids: [2212]
        )
      ]
    )
    (If
      arms: [
        (if_arm
          cond: [
            (Sentence
              child: (C {(test)} {($ VSub_Name '$failed')} {(-ne)} {(0)})
              terminator: <Op_Semi ';'>
            )
          ]
          action: [
            (SimpleCommand
              words: [{(echo)} {(DQ ('Brackets test failed'))}]
              redirects: [
                (Redir
                  op: <Redir_DGreat '>>'>
                  fd: 16777215
                  arg_word: {($ VSub_Name '$logfile')}
                )
              ]
            )
            (Assignment
              keyword: Assign_None
              pairs: [(assign_pair lhs:(LhsName name:result) op:Equal rhs:{(1)} spids:[2245])]
              spids: [2245]
            )
          ]
          spids: [16777215 2231]
        )
      ]
      spids: [16777215 2248]
    )
    (Assignment
      keyword: Assign_None
      pairs: [(assign_pair lhs:(LhsName name:failed) op:Equal rhs:{(0)} spids:[2254])]
      spids: [2254]
    )
    (Pipeline
      children: [
        (C {(${ VSub_Name test_program_prefix)} {(${ VSub_Name common_objpfx) (posix/globtest)} 
          {(DQ ($ VSub_Name '$testdir'))} {(DQ ('dir1/file1_[]12]'))}
        )
        (SimpleCommand
          words: [{(sort)}]
          redirects: [(Redir op:<Redir_Great '>'> fd:16777215 arg_word:{($ VSub_Name '$testout')})]
        )
      ]
      negated: F
    )
    (AndOr
      ops: [Op_DPipe]
      children: [
        (Pipeline
          children: [
            (SimpleCommand
              words: [{(cat)}]
              redirects: [
                (HereDoc
                  op: <Redir_DLess '<<'>
                  fd: 16777215
                  here_begin: {(DQ (EOF))}
                  here_end_span_id: 2309
                  stdin_parts: [("`dir1/file1_1'\n") ("`dir1/file1_2'\n")]
                )
              ]
            )
            (SimpleCommand
              words: [{($ VSub_Name '$CMP')} {(-)} {($ VSub_Name '$testout')}]
              redirects: [
                (Redir
                  op: <Redir_DGreat '>>'>
                  fd: 16777215
                  arg_word: {($ VSub_Name '$logfile')}
                )
              ]
            )
          ]
          negated: F
        )
        (Assignment
          keyword: Assign_None
          pairs: [(assign_pair lhs:(LhsName name:failed) op:Equal rhs:{(1)} spids:[2304])]
          spids: [2304]
        )
      ]
    )
    (If
      arms: [
        (if_arm
          cond: [
            (Sentence
              child: (C {(test)} {($ VSub_Name '$failed')} {(-ne)} {(0)})
              terminator: <Op_Semi ';'>
            )
          ]
          action: [
            (SimpleCommand
              words: [{(echo)} {(DQ ('Brackets2 test failed'))}]
              redirects: [
                (Redir
                  op: <Redir_DGreat '>>'>
                  fd: 16777215
                  arg_word: {($ VSub_Name '$logfile')}
                )
              ]
            )
            (Assignment
              keyword: Assign_None
              pairs: [(assign_pair lhs:(LhsName name:result) op:Equal rhs:{(1)} spids:[2335])]
              spids: [2335]
            )
          ]
          spids: [16777215 2321]
        )
      ]
      spids: [16777215 2338]
    )
    (Assignment
      keyword: Assign_None
      pairs: [(assign_pair lhs:(LhsName name:failed) op:Equal rhs:{(0)} spids:[2344])]
      spids: [2344]
    )
    (Pipeline
      children: [
        (C {(${ VSub_Name test_program_prefix)} {(${ VSub_Name common_objpfx) (posix/globtest)} {(-q)} 
          {(-t)} {(DQ ($ VSub_Name '$testdir'))} {(DQ ('~'))}
        )
        (SimpleCommand
          words: [{(sort)}]
          redirects: [(Redir op:<Redir_Great '>'> fd:16777215 arg_word:{($ VSub_Name '$testout')})]
        )
      ]
      negated: F
    )
    (AndOr
      ops: [Op_DPipe]
      children: [
        (Pipeline
          children: [
            (C {(echo)} {(TildeSubPart token:<Lit_TildeLike '~'>)})
            (SimpleCommand
              words: [{($ VSub_Name '$CMP')} {(-)} {($ VSub_Name '$testout')}]
              redirects: [
                (Redir
                  op: <Redir_DGreat '>>'>
                  fd: 16777215
                  arg_word: {($ VSub_Name '$logfile')}
                )
              ]
            )
          ]
          negated: F
        )
        (Assignment
          keyword: Assign_None
          pairs: [(assign_pair lhs:(LhsName name:failed) op:Equal rhs:{(1)} spids:[2394])]
          spids: [2394]
        )
      ]
    )
    (If
      arms: [
        (if_arm
          cond: [
            (Sentence
              child: (C {(test)} {($ VSub_Name '$failed')} {(-ne)} {(0)})
              terminator: <Op_Semi ';'>
            )
          ]
          action: [
            (If
              arms: [
                (if_arm
                  cond: [
                    (Sentence
                      child: (C {(test)} {(-d)} {(TildeSubPart token:<Lit_TildeLike '~'>)})
                      terminator: <Op_Semi ';'>
                    )
                  ]
                  action: [
                    (SimpleCommand
                      words: [{(echo)} {(DQ ('Tilde test failed'))}]
                      redirects: [
                        (Redir
                          op: <Redir_DGreat '>>'>
                          fd: 16777215
                          arg_word: {($ VSub_Name '$logfile')}
                        )
                      ]
                    )
                    (Assignment
                      keyword: Assign_None
                      pairs: [(assign_pair lhs:(LhsName name:result) op:Equal rhs:{(1)} spids:[2434])]
                      spids: [2434]
                    )
                  ]
                  spids: [16777215 2420]
                )
              ]
              else_action: [
                (SimpleCommand
                  words: [{(echo)} {(DQ ('Tilde test could not be run'))}]
                  redirects: [
                    (Redir
                      op: <Redir_DGreat '>>'>
                      fd: 16777215
                      arg_word: {($ VSub_Name '$logfile')}
                    )
                  ]
                )
              ]
              spids: [2438 2452]
            )
          ]
          spids: [16777215 2408]
        )
      ]
      spids: [16777215 2454]
    )
    (Assignment
      keyword: Assign_None
      pairs: [(assign_pair lhs:(LhsName name:failed) op:Equal rhs:{(0)} spids:[2460])]
      spids: [2460]
    )
    (Pipeline
      children: [
        (C {(${ VSub_Name test_program_prefix)} {(${ VSub_Name common_objpfx) (posix/globtest)} {(-q)} 
          {(-t)} {(DQ ($ VSub_Name '$testdir'))} {(DQ ('~/'))}
        )
        (SimpleCommand
          words: [{(sort)}]
          redirects: [(Redir op:<Redir_Great '>'> fd:16777215 arg_word:{($ VSub_Name '$testout')})]
        )
      ]
      negated: F
    )
    (If
      arms: [
        (if_arm
          cond: [
            (Sentence
              child: 
                (C {(test)} {(TildeSubPart token:<Lit_TildeLike '~'>) (/)} {(Lit_Other '=')} {(//)})
              terminator: <Op_Semi ';'>
            )
          ]
          action: [
            (AndOr
              ops: [Op_DPipe]
              children: [
                (Pipeline
                  children: [
                    (C {(echo)} {(/)})
                    (SimpleCommand
                      words: [{($ VSub_Name '$CMP')} {(-)} {($ VSub_Name '$testout')}]
                      redirects: [
                        (Redir
                          op: <Redir_DGreat '>>'>
                          fd: 16777215
                          arg_word: {($ VSub_Name '$logfile')}
                        )
                      ]
                    )
                  ]
                  negated: F
                )
                (Assignment
                  keyword: Assign_None
                  pairs: [(assign_pair lhs:(LhsName name:failed) op:Equal rhs:{(1)} spids:[2529])]
                  spids: [2529]
                )
              ]
            )
          ]
          spids: [16777215 2508]
        )
      ]
      else_action: [
        (AndOr
          ops: [Op_DPipe]
          children: [
            (Pipeline
              children: [
                (C {(echo)} {(TildeSubPart token:<Lit_TildeLike '~'>) (/)})
                (SimpleCommand
                  words: [{($ VSub_Name '$CMP')} {(-)} {($ VSub_Name '$testout')}]
                  redirects: [
                    (Redir
                      op: <Redir_DGreat '>>'>
                      fd: 16777215
                      arg_word: {($ VSub_Name '$logfile')}
                    )
                  ]
                )
              ]
              negated: F
            )
            (Assignment
              keyword: Assign_None
              pairs: [(assign_pair lhs:(LhsName name:failed) op:Equal rhs:{(1)} spids:[2554])]
              spids: [2554]
            )
          ]
        )
      ]
      spids: [2532 2557]
    )
    (If
      arms: [
        (if_arm
          cond: [
            (Sentence
              child: (C {(test)} {($ VSub_Name '$failed')} {(-ne)} {(0)})
              terminator: <Op_Semi ';'>
            )
          ]
          action: [
            (If
              arms: [
                (if_arm
                  cond: [
                    (Sentence
                      child: (C {(test)} {(-d)} {(TildeSubPart token:<Lit_TildeLike '~'>) (/)})
                      terminator: <Op_Semi ';'>
                    )
                  ]
                  action: [
                    (SimpleCommand
                      words: [{(echo)} {(DQ ('Tilde2 test failed'))}]
                      redirects: [
                        (Redir
                          op: <Redir_DGreat '>>'>
                          fd: 16777215
                          arg_word: {($ VSub_Name '$logfile')}
                        )
                      ]
                    )
                    (Assignment
                      keyword: Assign_None
                      pairs: [(assign_pair lhs:(LhsName name:result) op:Equal rhs:{(1)} spids:[2597])]
                      spids: [2597]
                    )
                  ]
                  spids: [16777215 2583]
                )
              ]
              else_action: [
                (SimpleCommand
                  words: [{(echo)} {(DQ ('Tilde2 test could not be run'))}]
                  redirects: [
                    (Redir
                      op: <Redir_DGreat '>>'>
                      fd: 16777215
                      arg_word: {($ VSub_Name '$logfile')}
                    )
                  ]
                )
              ]
              spids: [2601 2615]
            )
          ]
          spids: [16777215 2570]
        )
      ]
      spids: [16777215 2617]
    )
    (Assignment
      keyword: Assign_None
      pairs: [(assign_pair lhs:(LhsName name:failed) op:Equal rhs:{(0)} spids:[2623])]
      spids: [2623]
    )
    (Pipeline
      children: [
        (C {(${ VSub_Name test_program_prefix)} {(${ VSub_Name common_objpfx) (posix/globtest)} {(-q)} 
          {(-t)} {(DQ ($ VSub_Name '$testdir'))} {(DQ ('~')) ($ VSub_Name '$USER')}
        )
        (SimpleCommand
          words: [{(sort)}]
          redirects: [(Redir op:<Redir_Great '>'> fd:16777215 arg_word:{($ VSub_Name '$testout')})]
        )
      ]
      negated: F
    )
    (AndOr
      ops: [Op_DPipe]
      children: [
        (Pipeline
          children: [
            (C {(eval)} {(echo)} {(Lit_TildeLike '~') ($ VSub_Name '$USER')})
            (SimpleCommand
              words: [{($ VSub_Name '$CMP')} {(-)} {($ VSub_Name '$testout')}]
              redirects: [
                (Redir
                  op: <Redir_DGreat '>>'>
                  fd: 16777215
                  arg_word: {($ VSub_Name '$logfile')}
                )
              ]
            )
          ]
          negated: F
        )
        (Assignment
          keyword: Assign_None
          pairs: [(assign_pair lhs:(LhsName name:failed) op:Equal rhs:{(1)} spids:[2678])]
          spids: [2678]
        )
      ]
    )
    (If
      arms: [
        (if_arm
          cond: [
            (Sentence
              child: (C {(test)} {($ VSub_Name '$failed')} {(-ne)} {(0)})
              terminator: <Op_Semi ';'>
            )
          ]
          action: [
            (If
              arms: [
                (if_arm
                  cond: [
                    (Sentence
                      child: (C {(eval)} {(test)} {(-d)} {(Lit_TildeLike '~') ($ VSub_Name '$USER')})
                      terminator: <Op_Semi ';'>
                    )
                  ]
                  action: [
                    (SimpleCommand
                      words: [{(echo)} {(DQ ('Tilde3 test failed'))}]
                      redirects: [
                        (Redir
                          op: <Redir_DGreat '>>'>
                          fd: 16777215
                          arg_word: {($ VSub_Name '$logfile')}
                        )
                      ]
                    )
                    (Assignment
                      keyword: Assign_None
                      pairs: [(assign_pair lhs:(LhsName name:result) op:Equal rhs:{(1)} spids:[2721])]
                      spids: [2721]
                    )
                  ]
                  spids: [16777215 2707]
                )
              ]
              else_action: [
                (SimpleCommand
                  words: [{(echo)} {(DQ ('Tilde3 test could not be run'))}]
                  redirects: [
                    (Redir
                      op: <Redir_DGreat '>>'>
                      fd: 16777215
                      arg_word: {($ VSub_Name '$logfile')}
                    )
                  ]
                )
              ]
              spids: [2725 2739]
            )
          ]
          spids: [16777215 2692]
        )
      ]
      spids: [16777215 2741]
    )
    (Assignment
      keyword: Assign_None
      pairs: [(assign_pair lhs:(LhsName name:failed) op:Equal rhs:{(0)} spids:[2747])]
      spids: [2747]
    )
    (Pipeline
      children: [
        (C {(${ VSub_Name test_program_prefix)} {(${ VSub_Name common_objpfx) (posix/globtest)} {(-T)} 
          {(DQ ($ VSub_Name '$testdir'))} {(DQ ('~file4'))}
        )
        (SimpleCommand
          words: [{(sort)}]
          redirects: [(Redir op:<Redir_Great '>'> fd:16777215 arg_word:{($ VSub_Name '$testout')})]
        )
      ]
      negated: F
    )
    (AndOr
      ops: [Op_DPipe]
      children: [
        (Pipeline
          children: [
            (SimpleCommand
              words: [{(cat)}]
              redirects: [
                (HereDoc
                  op: <Redir_DLess '<<'>
                  fd: 16777215
                  here_begin: {(DQ (EOF))}
                  here_end_span_id: 2803
                  stdin_parts: [('GLOB_NOMATCH\n')]
                )
              ]
            )
            (SimpleCommand
              words: [{($ VSub_Name '$CMP')} {(-)} {($ VSub_Name '$testout')}]
              redirects: [
                (Redir
                  op: <Redir_DGreat '>>'>
                  fd: 16777215
                  arg_word: {($ VSub_Name '$logfile')}
                )
              ]
            )
          ]
          negated: F
        )
        (Assignment
          keyword: Assign_None
          pairs: [(assign_pair lhs:(LhsName name:failed) op:Equal rhs:{(1)} spids:[2799])]
          spids: [2799]
        )
      ]
    )
    (If
      arms: [
        (if_arm
          cond: [
            (Sentence
              child: (C {(test)} {($ VSub_Name '$failed')} {(-ne)} {(0)})
              terminator: <Op_Semi ';'>
            )
          ]
          action: [
            (SimpleCommand
              words: [{(echo)} {(DQ ('Tilde4 test failed'))}]
              redirects: [
                (Redir
                  op: <Redir_DGreat '>>'>
                  fd: 16777215
                  arg_word: {($ VSub_Name '$logfile')}
                )
              ]
            )
            (Assignment
              keyword: Assign_None
              pairs: [(assign_pair lhs:(LhsName name:result) op:Equal rhs:{(1)} spids:[2829])]
              spids: [2829]
            )
          ]
          spids: [16777215 2815]
        )
      ]
      spids: [16777215 2832]
    )
    (Assignment
      keyword: Assign_None
      pairs: [(assign_pair lhs:(LhsName name:failed) op:Equal rhs:{(0)} spids:[2838])]
      spids: [2838]
    )
    (Pipeline
      children: [
        (C {(${ VSub_Name test_program_prefix)} {(${ VSub_Name common_objpfx) (posix/globtest)} 
          {(DQ ($ VSub_Name '$testdir'))} {(DQ (Lit_Other '\\') ('**'))}
        )
        (SimpleCommand
          words: [{(sort)}]
          redirects: [(Redir op:<Redir_Great '>'> fd:16777215 arg_word:{($ VSub_Name '$testout')})]
        )
      ]
      negated: F
    )
    (AndOr
      ops: [Op_DPipe]
      children: [
        (Pipeline
          children: [
            (SimpleCommand
              words: [{(cat)}]
              redirects: [
                (HereDoc
                  op: <Redir_DLess '<<'>
                  fd: 16777215
                  here_begin: {(DQ (EOF))}
                  here_end_span_id: 2893
                  stdin_parts: [("`*file6'\n")]
                )
              ]
            )
            (SimpleCommand
              words: [{($ VSub_Name '$CMP')} {(-)} {($ VSub_Name '$testout')}]
              redirects: [
                (Redir
                  op: <Redir_DGreat '>>'>
                  fd: 16777215
                  arg_word: {($ VSub_Name '$logfile')}
                )
              ]
            )
          ]
          negated: F
        )
        (Assignment
          keyword: Assign_None
          pairs: [(assign_pair lhs:(LhsName name:failed) op:Equal rhs:{(1)} spids:[2889])]
          spids: [2889]
        )
      ]
    )
    (If
      arms: [
        (if_arm
          cond: [
            (Sentence
              child: (C {(test)} {($ VSub_Name '$failed')} {(-ne)} {(0)})
              terminator: <Op_Semi ';'>
            )
          ]
          action: [
            (SimpleCommand
              words: [{(echo)} {(DQ ('Star test failed'))}]
              redirects: [
                (Redir
                  op: <Redir_DGreat '>>'>
                  fd: 16777215
                  arg_word: {($ VSub_Name '$logfile')}
                )
              ]
            )
            (Assignment
              keyword: Assign_None
              pairs: [(assign_pair lhs:(LhsName name:result) op:Equal rhs:{(1)} spids:[2919])]
              spids: [2919]
            )
          ]
          spids: [16777215 2905]
        )
      ]
      spids: [16777215 2922]
    )
    (Assignment
      keyword: Assign_None
      pairs: [(assign_pair lhs:(LhsName name:failed) op:Equal rhs:{(0)} spids:[2931])]
      spids: [2931]
    )
    (Pipeline
      children: [
        (C {(${ VSub_Name test_program_prefix)} {(${ VSub_Name common_objpfx) (posix/globtest)} {(-e)} 
          {(DQ ($ VSub_Name '$testdir'))} {(DQ (Lit_Other '\\') ('**'))}
        )
        (SimpleCommand
          words: [{(sort)}]
          redirects: [(Redir op:<Redir_Great '>'> fd:16777215 arg_word:{($ VSub_Name '$testout')})]
        )
      ]
      negated: F
    )
    (AndOr
      ops: [Op_DPipe]
      children: [
        (Pipeline
          children: [
            (SimpleCommand
              words: [{(cat)}]
              redirects: [
                (HereDoc
                  op: <Redir_DLess '<<'>
                  fd: 16777215
                  here_begin: {(DQ (EOF))}
                  here_end_span_id: 2990
                  stdin_parts: [("`\\file9b\\'\n") ("`\\{file8\\}'\n") ("`\\{file9\\,file9b\\}'\n")]
                )
              ]
            )
            (SimpleCommand
              words: [{($ VSub_Name '$CMP')} {(-)} {($ VSub_Name '$testout')}]
              redirects: [
                (Redir
                  op: <Redir_DGreat '>>'>
                  fd: 16777215
                  arg_word: {($ VSub_Name '$logfile')}
                )
              ]
            )
          ]
          negated: F
        )
        (Assignment
          keyword: Assign_None
          pairs: [(assign_pair lhs:(LhsName name:failed) op:Equal rhs:{(1)} spids:[2984])]
          spids: [2984]
        )
      ]
    )
    (If
      arms: [
        (if_arm
          cond: [
            (Sentence
              child: (C {(test)} {($ VSub_Name '$failed')} {(-ne)} {(0)})
              terminator: <Op_Semi ';'>
            )
          ]
          action: [
            (SimpleCommand
              words: [{(echo)} {(DQ ('Star2 test failed'))}]
              redirects: [
                (Redir
                  op: <Redir_DGreat '>>'>
                  fd: 16777215
                  arg_word: {($ VSub_Name '$logfile')}
                )
              ]
            )
            (Assignment
              keyword: Assign_None
              pairs: [(assign_pair lhs:(LhsName name:result) op:Equal rhs:{(1)} spids:[3016])]
              spids: [3016]
            )
          ]
          spids: [16777215 3002]
        )
      ]
      spids: [16777215 3019]
    )
    (Assignment
      keyword: Assign_None
      pairs: [(assign_pair lhs:(LhsName name:failed) op:Equal rhs:{(0)} spids:[3025])]
      spids: [3025]
    )
    (Pipeline
      children: [
        (C {(${ VSub_Name test_program_prefix)} {(${ VSub_Name common_objpfx) (posix/globtest)} 
          {(DQ ($ VSub_Name '$testdir'))} {(DQ (Lit_Other '\\') ('*file6'))}
        )
        (SimpleCommand
          words: [{(sort)}]
          redirects: [(Redir op:<Redir_Great '>'> fd:16777215 arg_word:{($ VSub_Name '$testout')})]
        )
      ]
      negated: F
    )
    (AndOr
      ops: [Op_DPipe]
      children: [
        (Pipeline
          children: [
            (SimpleCommand
              words: [{(cat)}]
              redirects: [
                (HereDoc
                  op: <Redir_DLess '<<'>
                  fd: 16777215
                  here_begin: {(DQ (EOF))}
                  here_end_span_id: 3080
                  stdin_parts: [("`*file6'\n")]
                )
              ]
            )
            (SimpleCommand
              words: [{($ VSub_Name '$CMP')} {(-)} {($ VSub_Name '$testout')}]
              redirects: [
                (Redir
                  op: <Redir_DGreat '>>'>
                  fd: 16777215
                  arg_word: {($ VSub_Name '$logfile')}
                )
              ]
            )
          ]
          negated: F
        )
        (Assignment
          keyword: Assign_None
          pairs: [(assign_pair lhs:(LhsName name:failed) op:Equal rhs:{(1)} spids:[3076])]
          spids: [3076]
        )
      ]
    )
    (If
      arms: [
        (if_arm
          cond: [
            (Sentence
              child: (C {(test)} {($ VSub_Name '$failed')} {(-ne)} {(0)})
              terminator: <Op_Semi ';'>
            )
          ]
          action: [
            (SimpleCommand
              words: [{(echo)} {(DQ ('Star3 test failed'))}]
              redirects: [
                (Redir
                  op: <Redir_DGreat '>>'>
                  fd: 16777215
                  arg_word: {($ VSub_Name '$logfile')}
                )
              ]
            )
            (Assignment
              keyword: Assign_None
              pairs: [(assign_pair lhs:(LhsName name:result) op:Equal rhs:{(1)} spids:[3106])]
              spids: [3106]
            )
          ]
          spids: [16777215 3092]
        )
      ]
      spids: [16777215 3109]
    )
    (Assignment
      keyword: Assign_None
      pairs: [(assign_pair lhs:(LhsName name:failed) op:Equal rhs:{(0)} spids:[3115])]
      spids: [3115]
    )
    (Pipeline
      children: [
        (C {(${ VSub_Name test_program_prefix)} {(${ VSub_Name common_objpfx) (posix/globtest)} {(-b)} 
          {(DQ ($ VSub_Name '$testdir'))} {(SQ <'\\{file7\\,\\}'>)}
        )
        (SimpleCommand
          words: [{(sort)}]
          redirects: [(Redir op:<Redir_Great '>'> fd:16777215 arg_word:{($ VSub_Name '$testout')})]
        )
      ]
      negated: F
    )
    (AndOr
      ops: [Op_DPipe]
      children: [
        (Pipeline
          children: [
            (SimpleCommand
              words: [{(cat)}]
              redirects: [
                (HereDoc
                  op: <Redir_DLess '<<'>
                  fd: 16777215
                  here_begin: {(DQ (EOF))}
                  here_end_span_id: 3171
                  stdin_parts: [("`{file7,}'\n")]
                )
              ]
            )
            (SimpleCommand
              words: [{($ VSub_Name '$CMP')} {(-)} {($ VSub_Name '$testout')}]
              redirects: [
                (Redir
                  op: <Redir_DGreat '>>'>
                  fd: 16777215
                  arg_word: {($ VSub_Name '$logfile')}
                )
              ]
            )
          ]
          negated: F
        )
        (Assignment
          keyword: Assign_None
          pairs: [(assign_pair lhs:(LhsName name:failed) op:Equal rhs:{(1)} spids:[3167])]
          spids: [3167]
        )
      ]
    )
    (If
      arms: [
        (if_arm
          cond: [
            (Sentence
              child: (C {(test)} {($ VSub_Name '$failed')} {(-ne)} {(0)})
              terminator: <Op_Semi ';'>
            )
          ]
          action: [
            (SimpleCommand
              words: [{(echo)} {(DQ ('Brace4 test failed'))}]
              redirects: [
                (Redir
                  op: <Redir_DGreat '>>'>
                  fd: 16777215
                  arg_word: {($ VSub_Name '$logfile')}
                )
              ]
            )
            (Assignment
              keyword: Assign_None
              pairs: [(assign_pair lhs:(LhsName name:result) op:Equal rhs:{(1)} spids:[3197])]
              spids: [3197]
            )
          ]
          spids: [16777215 3183]
        )
      ]
      spids: [16777215 3200]
    )
    (Assignment
      keyword: Assign_None
      pairs: [(assign_pair lhs:(LhsName name:failed) op:Equal rhs:{(0)} spids:[3206])]
      spids: [3206]
    )
    (Pipeline
      children: [
        (C {(${ VSub_Name test_program_prefix)} {(${ VSub_Name common_objpfx) (posix/globtest)} {(-b)} 
          {(-e)} {(DQ ($ VSub_Name '$testdir'))} {(SQ <'\\{file9\\,file9b\\}'>)}
        )
        (SimpleCommand
          words: [{(sort)}]
          redirects: [(Redir op:<Redir_Great '>'> fd:16777215 arg_word:{($ VSub_Name '$testout')})]
        )
      ]
      negated: F
    )
    (AndOr
      ops: [Op_DPipe]
      children: [
        (Pipeline
          children: [
            (SimpleCommand
              words: [{(cat)}]
              redirects: [
                (HereDoc
                  op: <Redir_DLess '<<'>
                  fd: 16777215
                  here_begin: {(DQ (EOF))}
                  here_end_span_id: 3264
                  stdin_parts: [("`\\file9b\\'\n")]
                )
              ]
            )
            (SimpleCommand
              words: [{($ VSub_Name '$CMP')} {(-)} {($ VSub_Name '$testout')}]
              redirects: [
                (Redir
                  op: <Redir_DGreat '>>'>
                  fd: 16777215
                  arg_word: {($ VSub_Name '$logfile')}
                )
              ]
            )
          ]
          negated: F
        )
        (Assignment
          keyword: Assign_None
          pairs: [(assign_pair lhs:(LhsName name:failed) op:Equal rhs:{(1)} spids:[3260])]
          spids: [3260]
        )
      ]
    )
    (If
      arms: [
        (if_arm
          cond: [
            (Sentence
              child: (C {(test)} {($ VSub_Name '$failed')} {(-ne)} {(0)})
              terminator: <Op_Semi ';'>
            )
          ]
          action: [
            (SimpleCommand
              words: [{(echo)} {(DQ ('Brace5 test failed'))}]
              redirects: [
                (Redir
                  op: <Redir_DGreat '>>'>
                  fd: 16777215
                  arg_word: {($ VSub_Name '$logfile')}
                )
              ]
            )
            (Assignment
              keyword: Assign_None
              pairs: [(assign_pair lhs:(LhsName name:result) op:Equal rhs:{(1)} spids:[3290])]
              spids: [3290]
            )
          ]
          spids: [16777215 3276]
        )
      ]
      spids: [16777215 3293]
    )
    (Assignment
      keyword: Assign_None
      pairs: [(assign_pair lhs:(LhsName name:failed) op:Equal rhs:{(0)} spids:[3299])]
      spids: [3299]
    )
    (Pipeline
      children: [
        (C {(${ VSub_Name test_program_prefix)} {(${ VSub_Name common_objpfx) (posix/globtest)} {(-b)} 
          {(DQ ($ VSub_Name '$testdir'))} {(SQ <'{filea\\,}'>)}
        )
        (SimpleCommand
          words: [{(sort)}]
          redirects: [(Redir op:<Redir_Great '>'> fd:16777215 arg_word:{($ VSub_Name '$testout')})]
        )
      ]
      negated: F
    )
    (AndOr
      ops: [Op_DPipe]
      children: [
        (Pipeline
          children: [
            (SimpleCommand
              words: [{(cat)}]
              redirects: [
                (HereDoc
                  op: <Redir_DLess '<<'>
                  fd: 16777215
                  here_begin: {(DQ (EOF))}
                  here_end_span_id: 3355
                  stdin_parts: [("`filea,'\n")]
                )
              ]
            )
            (SimpleCommand
              words: [{($ VSub_Name '$CMP')} {(-)} {($ VSub_Name '$testout')}]
              redirects: [
                (Redir
                  op: <Redir_DGreat '>>'>
                  fd: 16777215
                  arg_word: {($ VSub_Name '$logfile')}
                )
              ]
            )
          ]
          negated: F
        )
        (Assignment
          keyword: Assign_None
          pairs: [(assign_pair lhs:(LhsName name:failed) op:Equal rhs:{(1)} spids:[3351])]
          spids: [3351]
        )
      ]
    )
    (If
      arms: [
        (if_arm
          cond: [
            (Sentence
              child: (C {(test)} {($ VSub_Name '$failed')} {(-ne)} {(0)})
              terminator: <Op_Semi ';'>
            )
          ]
          action: [
            (SimpleCommand
              words: [{(echo)} {(DQ ('Brace6 test failed'))}]
              redirects: [
                (Redir
                  op: <Redir_DGreat '>>'>
                  fd: 16777215
                  arg_word: {($ VSub_Name '$logfile')}
                )
              ]
            )
            (Assignment
              keyword: Assign_None
              pairs: [(assign_pair lhs:(LhsName name:result) op:Equal rhs:{(1)} spids:[3381])]
              spids: [3381]
            )
          ]
          spids: [16777215 3367]
        )
      ]
      spids: [16777215 3384]
    )
    (Assignment
      keyword: Assign_None
      pairs: [(assign_pair lhs:(LhsName name:failed) op:Equal rhs:{(0)} spids:[3390])]
      spids: [3390]
    )
    (Pipeline
      children: [
        (C {(${ VSub_Name test_program_prefix)} {(${ VSub_Name common_objpfx) (posix/globtest)} {(-b)} 
          {(DQ ($ VSub_Name '$testdir'))} {(SQ <'{fileb\\}c}'>)}
        )
        (SimpleCommand
          words: [{(sort)}]
          redirects: [(Redir op:<Redir_Great '>'> fd:16777215 arg_word:{($ VSub_Name '$testout')})]
        )
      ]
      negated: F
    )
    (AndOr
      ops: [Op_DPipe]
      children: [
        (Pipeline
          children: [
            (SimpleCommand
              words: [{(cat)}]
              redirects: [
                (HereDoc
                  op: <Redir_DLess '<<'>
                  fd: 16777215
                  here_begin: {(DQ (EOF))}
                  here_end_span_id: 3446
                  stdin_parts: [("`fileb}c'\n")]
                )
              ]
            )
            (SimpleCommand
              words: [{($ VSub_Name '$CMP')} {(-)} {($ VSub_Name '$testout')}]
              redirects: [
                (Redir
                  op: <Redir_DGreat '>>'>
                  fd: 16777215
                  arg_word: {($ VSub_Name '$logfile')}
                )
              ]
            )
          ]
          negated: F
        )
        (Assignment
          keyword: Assign_None
          pairs: [(assign_pair lhs:(LhsName name:failed) op:Equal rhs:{(1)} spids:[3442])]
          spids: [3442]
        )
      ]
    )
    (If
      arms: [
        (if_arm
          cond: [
            (Sentence
              child: (C {(test)} {($ VSub_Name '$failed')} {(-ne)} {(0)})
              terminator: <Op_Semi ';'>
            )
          ]
          action: [
            (SimpleCommand
              words: [{(echo)} {(DQ ('Brace7 test failed'))}]
              redirects: [
                (Redir
                  op: <Redir_DGreat '>>'>
                  fd: 16777215
                  arg_word: {($ VSub_Name '$logfile')}
                )
              ]
            )
            (Assignment
              keyword: Assign_None
              pairs: [(assign_pair lhs:(LhsName name:result) op:Equal rhs:{(1)} spids:[3472])]
              spids: [3472]
            )
          ]
          spids: [16777215 3458]
        )
      ]
      spids: [16777215 3475]
    )
    (Assignment
      keyword: Assign_None
      pairs: [(assign_pair lhs:(LhsName name:failed) op:Equal rhs:{(0)} spids:[3481])]
      spids: [3481]
    )
    (Pipeline
      children: [
        (C {(${ VSub_Name test_program_prefix)} {(${ VSub_Name common_objpfx) (posix/globtest)} {(-e)} 
          {(DQ ($ VSub_Name '$testdir'))} {(DQ ('a*/*'))}
        )
        (SimpleCommand
          words: [{(sort)}]
          redirects: [(Redir op:<Redir_Great '>'> fd:16777215 arg_word:{($ VSub_Name '$testout')})]
        )
      ]
      negated: F
    )
    (AndOr
      ops: [Op_DPipe]
      children: [
        (Pipeline
          children: [
            (SimpleCommand
              words: [{(cat)}]
              redirects: [
                (HereDoc
                  op: <Redir_DLess '<<'>
                  fd: 16777215
                  here_begin: {(DQ (EOF))}
                  here_end_span_id: 3537
                  stdin_parts: [('GLOB_NOMATCH\n')]
                )
              ]
            )
            (SimpleCommand
              words: [{($ VSub_Name '$CMP')} {(-)} {($ VSub_Name '$testout')}]
              redirects: [
                (Redir
                  op: <Redir_DGreat '>>'>
                  fd: 16777215
                  arg_word: {($ VSub_Name '$logfile')}
                )
              ]
            )
          ]
          negated: F
        )
        (Assignment
          keyword: Assign_None
          pairs: [(assign_pair lhs:(LhsName name:failed) op:Equal rhs:{(1)} spids:[3533])]
          spids: [3533]
        )
      ]
    )
    (If
      arms: [
        (if_arm
          cond: [
            (Sentence
              child: (C {(test)} {($ VSub_Name '$failed')} {(-ne)} {(0)})
              terminator: <Op_Semi ';'>
            )
          ]
          action: [
            (SimpleCommand
              words: [{(echo)} {(DQ ('Star4 test failed'))}]
              redirects: [
                (Redir
                  op: <Redir_DGreat '>>'>
                  fd: 16777215
                  arg_word: {($ VSub_Name '$logfile')}
                )
              ]
            )
            (Assignment
              keyword: Assign_None
              pairs: [(assign_pair lhs:(LhsName name:result) op:Equal rhs:{(1)} spids:[3563])]
              spids: [3563]
            )
          ]
          spids: [16777215 3549]
        )
      ]
      spids: [16777215 3566]
    )
    (Assignment
      keyword: Assign_None
      pairs: [(assign_pair lhs:(LhsName name:failed) op:Equal rhs:{(0)} spids:[3572])]
      spids: [3572]
    )
    (Pipeline
      children: [
        (C {(${ VSub_Name test_program_prefix)} {(${ VSub_Name common_objpfx) (posix/globtest)} {(-E)} 
          {(DQ ($ VSub_Name '$testdir'))} {(DQ ('a*/*'))}
        )
        (SimpleCommand
          words: [{(sort)}]
          redirects: [(Redir op:<Redir_Great '>'> fd:16777215 arg_word:{($ VSub_Name '$testout')})]
        )
      ]
      negated: F
    )
    (AndOr
      ops: [Op_DPipe]
      children: [
        (Pipeline
          children: [
            (SimpleCommand
              words: [{(cat)}]
              redirects: [
                (HereDoc
                  op: <Redir_DLess '<<'>
                  fd: 16777215
                  here_begin: {(DQ (EOF))}
                  here_end_span_id: 3628
                  stdin_parts: [('GLOB_NOMATCH\n')]
                )
              ]
            )
            (SimpleCommand
              words: [{($ VSub_Name '$CMP')} {(-)} {($ VSub_Name '$testout')}]
              redirects: [
                (Redir
                  op: <Redir_DGreat '>>'>
                  fd: 16777215
                  arg_word: {($ VSub_Name '$logfile')}
                )
              ]
            )
          ]
          negated: F
        )
        (Assignment
          keyword: Assign_None
          pairs: [(assign_pair lhs:(LhsName name:failed) op:Equal rhs:{(1)} spids:[3624])]
          spids: [3624]
        )
      ]
    )
    (If
      arms: [
        (if_arm
          cond: [
            (Sentence
              child: (C {(test)} {($ VSub_Name '$failed')} {(-ne)} {(0)})
              terminator: <Op_Semi ';'>
            )
          ]
          action: [
            (SimpleCommand
              words: [{(echo)} {(DQ ('Star5 test failed'))}]
              redirects: [
                (Redir
                  op: <Redir_DGreat '>>'>
                  fd: 16777215
                  arg_word: {($ VSub_Name '$logfile')}
                )
              ]
            )
            (Assignment
              keyword: Assign_None
              pairs: [(assign_pair lhs:(LhsName name:result) op:Equal rhs:{(1)} spids:[3654])]
              spids: [3654]
            )
          ]
          spids: [16777215 3640]
        )
      ]
      spids: [16777215 3657]
    )
    (Assignment
      keyword: Assign_None
      pairs: [(assign_pair lhs:(LhsName name:failed) op:Equal rhs:{(0)} spids:[3663])]
      spids: [3663]
    )
    (Pipeline
      children: [
        (C {(${ VSub_Name test_program_prefix)} {(${ VSub_Name common_objpfx) (posix/globtest)} 
          {(DQ ($ VSub_Name '$testdir'))} {(DQ ('noread/*'))}
        )
        (SimpleCommand
          words: [{(sort)}]
          redirects: [(Redir op:<Redir_Great '>'> fd:16777215 arg_word:{($ VSub_Name '$testout')})]
        )
      ]
      negated: F
    )
    (AndOr
      ops: [Op_DPipe]
      children: [
        (Pipeline
          children: [
            (SimpleCommand
              words: [{(cat)}]
              redirects: [
                (HereDoc
                  op: <Redir_DLess '<<'>
                  fd: 16777215
                  here_begin: {(DQ (EOF))}
                  here_end_span_id: 3717
                  stdin_parts: [('GLOB_NOMATCH\n')]
                )
              ]
            )
            (SimpleCommand
              words: [{($ VSub_Name '$CMP')} {(-)} {($ VSub_Name '$testout')}]
              redirects: [
                (Redir
                  op: <Redir_DGreat '>>'>
                  fd: 16777215
                  arg_word: {($ VSub_Name '$logfile')}
                )
              ]
            )
          ]
          negated: F
        )
        (Assignment
          keyword: Assign_None
          pairs: [(assign_pair lhs:(LhsName name:failed) op:Equal rhs:{(1)} spids:[3713])]
          spids: [3713]
        )
      ]
    )
    (If
      arms: [
        (if_arm
          cond: [
            (Sentence
              child: (C {(test)} {($ VSub_Name '$failed')} {(-ne)} {(0)})
              terminator: <Op_Semi ';'>
            )
          ]
          action: [
            (SimpleCommand
              words: [{(echo)} {(DQ ('Star6 test failed'))}]
              redirects: [
                (Redir
                  op: <Redir_DGreat '>>'>
                  fd: 16777215
                  arg_word: {($ VSub_Name '$logfile')}
                )
              ]
            )
            (Assignment
              keyword: Assign_None
              pairs: [(assign_pair lhs:(LhsName name:result) op:Equal rhs:{(1)} spids:[3743])]
              spids: [3743]
            )
          ]
          spids: [16777215 3729]
        )
      ]
      spids: [16777215 3746]
    )
    (Assignment
      keyword: Assign_None
      pairs: [(assign_pair lhs:(LhsName name:failed) op:Equal rhs:{(0)} spids:[3749])]
      spids: [3749]
    )
    (Pipeline
      children: [
        (C {(${ VSub_Name test_program_prefix)} {(${ VSub_Name common_objpfx) (posix/globtest)} 
          {(DQ ($ VSub_Name '$testdir'))} {(DQ ('noread*/*'))}
        )
        (SimpleCommand
          words: [{(sort)}]
          redirects: [(Redir op:<Redir_Great '>'> fd:16777215 arg_word:{($ VSub_Name '$testout')})]
        )
      ]
      negated: F
    )
    (AndOr
      ops: [Op_DPipe]
      children: [
        (Pipeline
          children: [
            (SimpleCommand
              words: [{(cat)}]
              redirects: [
                (HereDoc
                  op: <Redir_DLess '<<'>
                  fd: 16777215
                  here_begin: {(DQ (EOF))}
                  here_end_span_id: 3803
                  stdin_parts: [('GLOB_NOMATCH\n')]
                )
              ]
            )
            (SimpleCommand
              words: [{($ VSub_Name '$CMP')} {(-)} {($ VSub_Name '$testout')}]
              redirects: [
                (Redir
                  op: <Redir_DGreat '>>'>
                  fd: 16777215
                  arg_word: {($ VSub_Name '$logfile')}
                )
              ]
            )
          ]
          negated: F
        )
        (Assignment
          keyword: Assign_None
          pairs: [(assign_pair lhs:(LhsName name:failed) op:Equal rhs:{(1)} spids:[3799])]
          spids: [3799]
        )
      ]
    )
    (If
      arms: [
        (if_arm
          cond: [
            (Sentence
              child: (C {(test)} {($ VSub_Name '$failed')} {(-ne)} {(0)})
              terminator: <Op_Semi ';'>
            )
          ]
          action: [
            (SimpleCommand
              words: [{(echo)} {(DQ ('Star6 test failed'))}]
              redirects: [
                (Redir
                  op: <Redir_DGreat '>>'>
                  fd: 16777215
                  arg_word: {($ VSub_Name '$logfile')}
                )
              ]
            )
            (Assignment
              keyword: Assign_None
              pairs: [(assign_pair lhs:(LhsName name:result) op:Equal rhs:{(1)} spids:[3829])]
              spids: [3829]
            )
          ]
          spids: [16777215 3815]
        )
      ]
      spids: [16777215 3832]
    )
    (Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (LhsName name:user)
          op: Equal
          rhs: 
            {
              (CommandSubPart
                command_list: 
                  (CommandList
                    children: [
                      (SimpleCommand
                        words: [{(id)} {(-un)}]
                        redirects: [(Redir op:<Redir_Great '2>'> fd:2 arg_word:{(/dev/null)})]
                      )
                    ]
                  )
                left_token: <Left_Backtick '`'>
                spids: [3839 3847]
              )
            }
          spids: [3838]
        )
      ]
      spids: [3838]
    )
    (If
      arms: [
        (if_arm
          cond: [
            (Sentence
              child: (C {(test)} {(-z)} {(DQ ($ VSub_Name '$user'))})
              terminator: <Op_Semi ';'>
            )
          ]
          action: [
            (Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (LhsName name:uid)
                  op: Equal
                  rhs: {(DQ ($ VSub_Name '$USER'))}
                  spids: [3863]
                )
              ]
              spids: [3863]
            )
          ]
          spids: [16777215 3860]
        )
      ]
      spids: [16777215 3868]
    )
    (If
      arms: [
        (if_arm
          cond: [
            (Sentence
              child: (C {(test)} {(DQ ($ VSub_Name '$user'))} {(KW_Bang '!') (Lit_Other '=')} {(root)})
              terminator: <Op_Semi ';'>
            )
          ]
          action: [
            (Pipeline
              children: [
                (C {(${ VSub_Name test_program_prefix)} {(${ VSub_Name common_objpfx) (posix/globtest)} 
                  {(-E)} {(DQ ($ VSub_Name '$testdir'))} {(DQ ('noread/*'))}
                )
                (SimpleCommand
                  words: [{(sort)}]
                  redirects: [
                    (Redir
                      op: <Redir_Great '>'>
                      fd: 16777215
                      arg_word: {($ VSub_Name '$testout')}
                    )
                  ]
                )
              ]
              negated: F
            )
            (AndOr
              ops: [Op_DPipe]
              children: [
                (Pipeline
                  children: [
                    (SimpleCommand
                      words: [{(cat)}]
                      redirects: [
                        (HereDoc
                          op: <Redir_DLess '<<'>
                          fd: 16777215
                          here_begin: {(DQ (EOF))}
                          here_end_span_id: 3947
                          stdin_parts: [('GLOB_ABORTED\n')]
                        )
                      ]
                    )
                    (SimpleCommand
                      words: [{($ VSub_Name '$CMP')} {(-)} {($ VSub_Name '$testout')}]
                      redirects: [
                        (Redir
                          op: <Redir_DGreat '>>'>
                          fd: 16777215
                          arg_word: {($ VSub_Name '$logfile')}
                        )
                      ]
                    )
                  ]
                  negated: F
                )
                (Assignment
                  keyword: Assign_None
                  pairs: [(assign_pair lhs:(LhsName name:failed) op:Equal rhs:{(1)} spids:[3943])]
                  spids: [3943]
                )
              ]
            )
            (Pipeline
              children: [
                (C {(${ VSub_Name test_program_prefix)} {(${ VSub_Name common_objpfx) (posix/globtest)} 
                  {(-E)} {(DQ ($ VSub_Name '$testdir'))} {(DQ ('noread*/*'))}
                )
                (SimpleCommand
                  words: [{(sort)}]
                  redirects: [
                    (Redir
                      op: <Redir_Great '>'>
                      fd: 16777215
                      arg_word: {($ VSub_Name '$testout')}
                    )
                  ]
                )
              ]
              negated: F
            )
            (AndOr
              ops: [Op_DPipe]
              children: [
                (Pipeline
                  children: [
                    (SimpleCommand
                      words: [{(cat)}]
                      redirects: [
                        (HereDoc
                          op: <Redir_DLess '<<'>
                          fd: 16777215
                          here_begin: {(DQ (EOF))}
                          here_end_span_id: 4006
                          stdin_parts: [('GLOB_ABORTED\n')]
                        )
                      ]
                    )
                    (SimpleCommand
                      words: [{($ VSub_Name '$CMP')} {(-)} {($ VSub_Name '$testout')}]
                      redirects: [
                        (Redir
                          op: <Redir_DGreat '>>'>
                          fd: 16777215
                          arg_word: {($ VSub_Name '$logfile')}
                        )
                      ]
                    )
                  ]
                  negated: F
                )
                (Assignment
                  keyword: Assign_None
                  pairs: [(assign_pair lhs:(LhsName name:failed) op:Equal rhs:{(1)} spids:[4002])]
                  spids: [4002]
                )
              ]
            )
            (If
              arms: [
                (if_arm
                  cond: [
                    (Sentence
                      child: (C {(test)} {($ VSub_Name '$failed')} {(-ne)} {(0)})
                      terminator: <Op_Semi ';'>
                    )
                  ]
                  action: [
                    (SimpleCommand
                      words: [{(echo)} {(DQ ('GLOB_ERR test failed'))}]
                      redirects: [
                        (Redir
                          op: <Redir_DGreat '>>'>
                          fd: 16777215
                          arg_word: {($ VSub_Name '$logfile')}
                        )
                      ]
                    )
                    (Assignment
                      keyword: Assign_None
                      pairs: [(assign_pair lhs:(LhsName name:result) op:Equal rhs:{(1)} spids:[4032])]
                      spids: [4032]
                    )
                  ]
                  spids: [16777215 4018]
                )
              ]
              spids: [16777215 4035]
            )
          ]
          spids: [16777215 3884]
        )
      ]
      spids: [16777215 4037]
    )
    (Assignment
      keyword: Assign_None
      pairs: [(assign_pair lhs:(LhsName name:failed) op:Equal rhs:{(0)} spids:[4046])]
      spids: [4046]
    )
    (Pipeline
      children: [
        (C {(${ VSub_Name test_program_prefix)} {(${ VSub_Name common_objpfx) (posix/globtest)} 
          {(DQ ($ VSub_Name '$testdir'))} {(DQ (file1))} {(DQ ('*/*'))}
        )
        (SimpleCommand
          words: [{(sort)}]
          redirects: [(Redir op:<Redir_Great '>'> fd:16777215 arg_word:{($ VSub_Name '$testout')})]
        )
      ]
      negated: F
    )
    (AndOr
      ops: [Op_DPipe]
      children: [
        (Pipeline
          children: [
            (SimpleCommand
              words: [{(cat)}]
              redirects: [
                (HereDoc
                  op: <Redir_DLess '<<'>
                  fd: 16777215
                  here_begin: {(DQ (EOF))}
                  here_end_span_id: 4108
                  stdin_parts: [
                    ("`dir1/file1_1'\n")
                    ("`dir1/file1_2'\n")
                    ("`file1'\n")
                    ("`link1/file1_1'\n")
                    ("`link1/file1_2'\n")
                  ]
                )
              ]
            )
            (SimpleCommand
              words: [{($ VSub_Name '$CMP')} {(-)} {($ VSub_Name '$testout')}]
              redirects: [
                (Redir
                  op: <Redir_DGreat '>>'>
                  fd: 16777215
                  arg_word: {($ VSub_Name '$logfile')}
                )
              ]
            )
          ]
          negated: F
        )
        (Assignment
          keyword: Assign_None
          pairs: [(assign_pair lhs:(LhsName name:failed) op:Equal rhs:{(1)} spids:[4100])]
          spids: [4100]
        )
      ]
    )
    (If
      arms: [
        (if_arm
          cond: [
            (Sentence
              child: (C {(test)} {($ VSub_Name '$failed')} {(-ne)} {(0)})
              terminator: <Op_Semi ';'>
            )
          ]
          action: [
            (SimpleCommand
              words: [{(echo)} {(DQ ('GLOB_APPEND test failed'))}]
              redirects: [
                (Redir
                  op: <Redir_DGreat '>>'>
                  fd: 16777215
                  arg_word: {($ VSub_Name '$logfile')}
                )
              ]
            )
            (Assignment
              keyword: Assign_None
              pairs: [(assign_pair lhs:(LhsName name:result) op:Equal rhs:{(1)} spids:[4134])]
              spids: [4134]
            )
          ]
          spids: [16777215 4120]
        )
      ]
      spids: [16777215 4137]
    )
    (Assignment
      keyword: Assign_None
      pairs: [(assign_pair lhs:(LhsName name:failed) op:Equal rhs:{(0)} spids:[4143])]
      spids: [4143]
    )
    (Pipeline
      children: [
        (C {(${ VSub_Name test_program_prefix)} {(${ VSub_Name common_objpfx) (posix/globtest)} {(-o)} 
          {(DQ ($ VSub_Name '$testdir'))} {(DQ (file1))} {(DQ ('*/*'))}
        )
        (SimpleCommand
          words: [{(sort)}]
          redirects: [(Redir op:<Redir_Great '>'> fd:16777215 arg_word:{($ VSub_Name '$testout')})]
        )
      ]
      negated: F
    )
    (AndOr
      ops: [Op_DPipe]
      children: [
        (Pipeline
          children: [
            (SimpleCommand
              words: [{(cat)}]
              redirects: [
                (HereDoc
                  op: <Redir_DLess '<<'>
                  fd: 16777215
                  here_begin: {(DQ (EOF))}
                  here_end_span_id: 4208
                  stdin_parts: [
                    ("`abc'\n")
                    ("`dir1/file1_1'\n")
                    ("`dir1/file1_2'\n")
                    ("`file1'\n")
                    ("`link1/file1_1'\n")
                    ("`link1/file1_2'\n")
                  ]
                )
              ]
            )
            (SimpleCommand
              words: [{($ VSub_Name '$CMP')} {(-)} {($ VSub_Name '$testout')}]
              redirects: [
                (Redir
                  op: <Redir_DGreat '>>'>
                  fd: 16777215
                  arg_word: {($ VSub_Name '$logfile')}
                )
              ]
            )
          ]
          negated: F
        )
        (Assignment
          keyword: Assign_None
          pairs: [(assign_pair lhs:(LhsName name:failed) op:Equal rhs:{(1)} spids:[4199])]
          spids: [4199]
        )
      ]
    )
    (If
      arms: [
        (if_arm
          cond: [
            (Sentence
              child: (C {(test)} {($ VSub_Name '$failed')} {(-ne)} {(0)})
              terminator: <Op_Semi ';'>
            )
          ]
          action: [
            (SimpleCommand
              words: [{(echo)} {(DQ ('GLOB_APPEND2 test failed'))}]
              redirects: [
                (Redir
                  op: <Redir_DGreat '>>'>
                  fd: 16777215
                  arg_word: {($ VSub_Name '$logfile')}
                )
              ]
            )
            (Assignment
              keyword: Assign_None
              pairs: [(assign_pair lhs:(LhsName name:result) op:Equal rhs:{(1)} spids:[4234])]
              spids: [4234]
            )
          ]
          spids: [16777215 4220]
        )
      ]
      spids: [16777215 4237]
    )
    (Assignment
      keyword: Assign_None
      pairs: [(assign_pair lhs:(LhsName name:failed) op:Equal rhs:{(0)} spids:[4243])]
      spids: [4243]
    )
    (Pipeline
      children: [
        (C {(${ VSub_Name test_program_prefix)} {(${ VSub_Name common_objpfx) (posix/globtest)} {(-c)} 
          {(DQ ($ VSub_Name '$testdir'))} {(DQ ('*/blahblah'))}
        )
        (SimpleCommand
          words: [{(sort)}]
          redirects: [(Redir op:<Redir_Great '>'> fd:16777215 arg_word:{($ VSub_Name '$testout')})]
        )
      ]
      negated: F
    )
    (AndOr
      ops: [Op_DPipe]
      children: [
        (Pipeline
          children: [
            (SimpleCommand
              words: [{(cat)}]
              redirects: [
                (HereDoc
                  op: <Redir_DLess '<<'>
                  fd: 16777215
                  here_begin: {(DQ (EOF))}
                  here_end_span_id: 4299
                  stdin_parts: [("`*/blahblah'\n")]
                )
              ]
            )
            (SimpleCommand
              words: [{($ VSub_Name '$CMP')} {(-)} {($ VSub_Name '$testout')}]
              redirects: [
                (Redir
                  op: <Redir_DGreat '>>'>
                  fd: 16777215
                  arg_word: {($ VSub_Name '$logfile')}
                )
              ]
            )
          ]
          negated: F
        )
        (Assignment
          keyword: Assign_None
          pairs: [(assign_pair lhs:(LhsName name:failed) op:Equal rhs:{(1)} spids:[4295])]
          spids: [4295]
        )
      ]
    )
    (If
      arms: [
        (if_arm
          cond: [
            (Sentence
              child: (C {(test)} {($ VSub_Name '$failed')} {(-ne)} {(0)})
              terminator: <Op_Semi ';'>
            )
          ]
          action: [
            (SimpleCommand
              words: [{(echo)} {(DQ ('No check2 test failed'))}]
              redirects: [
                (Redir
                  op: <Redir_DGreat '>>'>
                  fd: 16777215
                  arg_word: {($ VSub_Name '$logfile')}
                )
              ]
            )
            (Assignment
              keyword: Assign_None
              pairs: [(assign_pair lhs:(LhsName name:result) op:Equal rhs:{(1)} spids:[4325])]
              spids: [4325]
            )
          ]
          spids: [16777215 4311]
        )
      ]
      spids: [16777215 4328]
    )
    (Assignment
      keyword: Assign_None
      pairs: [(assign_pair lhs:(LhsName name:failed) op:Equal rhs:{(0)} spids:[4334])]
      spids: [4334]
    )
    (Pipeline
      children: [
        (C {(${ VSub_Name test_program_prefix)} {(${ VSub_Name common_objpfx) (posix/globtest)} {(-c)} 
          {(DQ ($ VSub_Name '$testdir'))} {(DQ ('[[:punct:]]*'))}
        )
        (SimpleCommand
          words: [{(sort)}]
          redirects: [(Redir op:<Redir_Great '>'> fd:16777215 arg_word:{($ VSub_Name '$testout')})]
        )
      ]
      negated: F
    )
    (AndOr
      ops: [Op_DPipe]
      children: [
        (Pipeline
          children: [
            (SimpleCommand
              words: [{(cat)}]
              redirects: [
                (HereDoc
                  op: <Redir_DLess '<<'>
                  fd: 16777215
                  here_begin: {(DQ (EOF))}
                  here_end_span_id: 4396
                  stdin_parts: [
                    ("`*file6'\n")
                    ("`-file3'\n")
                    ("`\\file9b\\'\n")
                    ("`\\{file8\\}'\n")
                    ("`\\{file9\\,file9b\\}'\n")
                    ("`{file7,}'\n")
                    ("`~file4'\n")
                  ]
                )
              ]
            )
            (SimpleCommand
              words: [{($ VSub_Name '$CMP')} {(-)} {($ VSub_Name '$testout')}]
              redirects: [
                (Redir
                  op: <Redir_DGreat '>>'>
                  fd: 16777215
                  arg_word: {($ VSub_Name '$logfile')}
                )
              ]
            )
          ]
          negated: F
        )
        (Assignment
          keyword: Assign_None
          pairs: [(assign_pair lhs:(LhsName name:failed) op:Equal rhs:{(1)} spids:[4386])]
          spids: [4386]
        )
      ]
    )
    (If
      arms: [
        (if_arm
          cond: [
            (Sentence
              child: (C {(test)} {($ VSub_Name '$failed')} {(-ne)} {(0)})
              terminator: <Op_Semi ';'>
            )
          ]
          action: [
            (SimpleCommand
              words: [{(echo)} {(DQ ('Punct test failed'))}]
              redirects: [
                (Redir
                  op: <Redir_DGreat '>>'>
                  fd: 16777215
                  arg_word: {($ VSub_Name '$logfile')}
                )
              ]
            )
            (Assignment
              keyword: Assign_None
              pairs: [(assign_pair lhs:(LhsName name:result) op:Equal rhs:{(1)} spids:[4422])]
              spids: [4422]
            )
          ]
          spids: [16777215 4408]
        )
      ]
      spids: [16777215 4425]
    )
    (C {(mkdir)} {($ VSub_Name '$testdir') (/) (SQ <'dir3*'>)})
    (SimpleCommand
      words: [{(echo)} {(1)}]
      redirects: [
        (Redir
          op: <Redir_Great '>'>
          fd: 16777215
          arg_word: {($ VSub_Name '$testdir') (/) (SQ <'dir3*'>) (/file1)}
        )
      ]
    )
    (C {(mkdir)} {($ VSub_Name '$testdir') (/) (SQ <'dir4[a'>)})
    (SimpleCommand
      words: [{(echo)} {(2)}]
      redirects: [
        (Redir
          op: <Redir_Great '>'>
          fd: 16777215
          arg_word: {($ VSub_Name '$testdir') (/) (SQ <'dir4[a'>) (/file1)}
        )
      ]
    )
    (SimpleCommand
      words: [{(echo)} {(3)}]
      redirects: [
        (Redir
          op: <Redir_Great '>'>
          fd: 16777215
          arg_word: {($ VSub_Name '$testdir') (/) (SQ <'dir4[a'>) (/file2)}
        )
      ]
    )
    (C {(mkdir)} {($ VSub_Name '$testdir') (/) (SQ <'dir5[ab]'>)})
    (SimpleCommand
      words: [{(echo)} {(4)}]
      redirects: [
        (Redir
          op: <Redir_Great '>'>
          fd: 16777215
          arg_word: {($ VSub_Name '$testdir') (/) (SQ <'dir5[ab]'>) (/file1)}
        )
      ]
    )
    (SimpleCommand
      words: [{(echo)} {(5)}]
      redirects: [
        (Redir
          op: <Redir_Great '>'>
          fd: 16777215
          arg_word: {($ VSub_Name '$testdir') (/) (SQ <'dir5[ab]'>) (/file2)}
        )
      ]
    )
    (C {(mkdir)} {($ VSub_Name '$testdir') (/dir6)})
    (SimpleCommand
      words: [{(echo)} {(6)}]
      redirects: [
        (Redir
          op: <Redir_Great '>'>
          fd: 16777215
          arg_word: {($ VSub_Name '$testdir') (/dir6/) (SQ <'file1[a'>)}
        )
      ]
    )
    (SimpleCommand
      words: [{(echo)} {(7)}]
      redirects: [
        (Redir
          op: <Redir_Great '>'>
          fd: 16777215
          arg_word: {($ VSub_Name '$testdir') (/dir6/) (SQ <'file1[ab]'>)}
        )
      ]
    )
    (Assignment
      keyword: Assign_None
      pairs: [(assign_pair lhs:(LhsName name:failed) op:Equal rhs:{(0)} spids:[4546])]
      spids: [4546]
    )
    (Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (LhsName name:v)
          op: Equal
          rhs: 
            {
              (CommandSubPart
                command_list: 
                  (CommandList
                    children: [
                      (C {(${ VSub_Name test_program_prefix)} 
                        {(${ VSub_Name common_objpfx) (posix/globtest)} {(DQ ($ VSub_Name '$testdir'))} {(SQ <'dir3\\*/file2'>)}
                      )
                    ]
                  )
                left_token: <Left_Backtick '`'>
                spids: [4550 4569]
              )
            }
          spids: [4549]
        )
      ]
      spids: [4549]
    )
    (AndOr
      ops: [Op_DAmp Op_DAmp]
      children: [
        (C {(test)} {(DQ ($ VSub_Name '$v'))} {(KW_Bang '!') (Lit_Other '=')} {(SQ <GLOB_NOMATCH>)})
        (SimpleCommand
          words: [{(echo)} {(DQ ($ VSub_Name '$v'))}]
          redirects: [(Redir op:<Redir_DGreat '>>'> fd:16777215 arg_word:{($ VSub_Name '$logfile')})]
        )
        (Assignment
          keyword: Assign_None
          pairs: [(assign_pair lhs:(LhsName name:failed) op:Equal rhs:{(1)} spids:[4598])]
          spids: [4598]
        )
      ]
    )
    (Pipeline
      children: [
        (C {(${ VSub_Name test_program_prefix)} {(${ VSub_Name common_objpfx) (posix/globtest)} {(-c)} 
          {(DQ ($ VSub_Name '$testdir'))} {(SQ <'dir3\\*/file1'>)} {(SQ <'dir3\\*/file2'>)} {(SQ <'dir1/file\\1_1'>)} {(SQ <'dir1/file\\1_9'>)} 
          {(SQ <'dir2\\/'>)} {(SQ <'nondir\\/'>)} {(SQ <'dir4[a/fil*1'>)} {(SQ <'di*r4[a/file2'>)} {(SQ <'dir5[ab]/file[12]'>)} 
          {(SQ <'dir6/fil*[a'>)} {(SQ <'dir*6/file1[a'>)} {(SQ <'dir6/fi*l[ab]'>)} {(SQ <'dir*6/file1[ab]'>)} {(SQ <'dir6/file1[[.a.]*'>)}
        )
        (SimpleCommand
          words: [{(sort)}]
          redirects: [(Redir op:<Redir_Great '>'> fd:16777215 arg_word:{($ VSub_Name '$testout')})]
        )
      ]
      negated: F
    )
    (AndOr
      ops: [Op_DPipe]
      children: [
        (Pipeline
          children: [
            (SimpleCommand
              words: [{(cat)}]
              redirects: [
                (HereDoc
                  op: <Redir_DLess '<<'>
                  fd: 16777215
                  here_begin: {(DQ (EOF))}
                  here_end_span_id: 4724
                  stdin_parts: [
                    ("`dir*6/file1[ab]'\n")
                    ("`dir1/file1_1'\n")
                    ("`dir1/file\\1_9'\n")
                    ("`dir2/'\n")
                    ("`dir3*/file1'\n")
                    ("`dir3\\*/file2'\n")
                    ("`dir4[a/file1'\n")
                    ("`dir4[a/file2'\n")
                    ("`dir5[ab]/file[12]'\n")
                    ("`dir6/fi*l[ab]'\n")
                    ("`dir6/file1[a'\n")
                    ("`dir6/file1[a'\n")
                    ("`dir6/file1[a'\n")
                    ("`dir6/file1[ab]'\n")
                    ("`nondir\\/'\n")
                  ]
                )
              ]
            )
            (SimpleCommand
              words: [{($ VSub_Name '$CMP')} {(-)} {($ VSub_Name '$testout')}]
              redirects: [
                (Redir
                  op: <Redir_DGreat '>>'>
                  fd: 16777215
                  arg_word: {($ VSub_Name '$logfile')}
                )
              ]
            )
          ]
          negated: F
        )
        (Assignment
          keyword: Assign_None
          pairs: [(assign_pair lhs:(LhsName name:failed) op:Equal rhs:{(1)} spids:[4706])]
          spids: [4706]
        )
      ]
    )
    (Pipeline
      children: [
        (C {(${ VSub_Name test_wrapper_env)} {(Lit_VarLike 'HOME=') (DQ ($ VSub_Name '$testdir'))} 
          {(${ VSub_Name test_via_rtld_prefix)} {(${ VSub_Name common_objpfx) (posix/globtest)} {(-ct)} {(DQ ($ VSub_Name '$testdir'))} 
          {(SQ <'~/dir1/file1_1'>)} {(SQ <'~/dir1/file1_9'>)} {(SQ <'~/dir3\\*/file1'>)} {(SQ <'~/dir3\\*/file2'>)} 
          {(SQ <'~\\/dir1/file1_2'>)}
        )
        (SimpleCommand
          words: [{(sort)}]
          redirects: [(Redir op:<Redir_Great '>'> fd:16777215 arg_word:{($ VSub_Name '$testout')})]
        )
      ]
      negated: F
    )
    (AndOr
      ops: [Op_DPipe]
      children: [
        (Pipeline
          children: [
            (SimpleCommand
              words: [{(cat)}]
              redirects: [
                (HereDoc
                  op: <Redir_DLess '<<'>
                  fd: 16777215
                  here_begin: {(EOF)}
                  here_end_span_id: 4820
                  stdin_parts: [
                    (EscapedLiteralPart token:<Lit_EscapedChar '\\`'>)
                    ($ VSub_Name '$testdir')
                    ("/dir1/file1_1'\n")
                    (EscapedLiteralPart token:<Lit_EscapedChar '\\`'>)
                    ($ VSub_Name '$testdir')
                    ("/dir1/file1_2'\n")
                    (EscapedLiteralPart token:<Lit_EscapedChar '\\`'>)
                    ($ VSub_Name '$testdir')
                    ("/dir3*/file1'\n")
                    (EscapedLiteralPart token:<Lit_EscapedChar '\\`'>)
                    ("~/dir1/file1_9'\n")
                    (EscapedLiteralPart token:<Lit_EscapedChar '\\`'>)
                    ('~/dir3')
                    (EscapedLiteralPart token:<Lit_EscapedChar '\\\\'>)
                    ("*/file2'\n")
                  ]
                )
              ]
            )
            (SimpleCommand
              words: [{($ VSub_Name '$CMP')} {(-)} {($ VSub_Name '$testout')}]
              redirects: [
                (Redir
                  op: <Redir_DGreat '>>'>
                  fd: 16777215
                  arg_word: {($ VSub_Name '$logfile')}
                )
              ]
            )
          ]
          negated: F
        )
        (Assignment
          keyword: Assign_None
          pairs: [(assign_pair lhs:(LhsName name:failed) op:Equal rhs:{(1)} spids:[4801])]
          spids: [4801]
        )
      ]
    )
    (If
      arms: [
        (if_arm
          cond: [
            (Sentence
              child: (C {(eval)} {(test)} {(-d)} {(Lit_TildeLike '~') (DQ ($ VSub_Name '$USER')) (/)})
              terminator: <Op_Semi ';'>
            )
          ]
          action: [
            (Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (LhsName name:user)
                  op: Equal
                  rhs: 
                    {
                      (CommandSubPart
                        command_list: 
                          (CommandList
                            children: [
                              (Pipeline
                                children: [
                                  (C {(echo)} {(DQ ($ VSub_Name '$USER'))})
                                  (C {(sed)} {(-n)} {(-e)} 
                                    {
                                      (SQ 
                                        <
's/^\\([^\\\\]\\)\\([^\\\\][^\\\\]*\\)$/~\\1\\\\\\\\\\2/p'
                                        >
                                      )
                                    }
                                  )
                                ]
                                negated: F
                              )
                            ]
                          )
                        left_token: <Left_Backtick '`'>
                        spids: [4840 4858]
                      )
                    }
                  spids: [4839]
                )
              ]
              spids: [4839]
            )
            (If
              arms: [
                (if_arm
                  cond: [
                    (Sentence
                      child: (C {(test)} {(-n)} {(DQ ($ VSub_Name '$user'))})
                      terminator: <Op_Semi ';'>
                    )
                  ]
                  action: [
                    (Pipeline
                      children: [
                        (C {(${ VSub_Name test_program_prefix)} 
                          {(${ VSub_Name common_objpfx) (posix/globtest)} {(-ctq)} {(DQ ($ VSub_Name '$testdir'))} {(DQ ($ VSub_Name '$user') (/))}
                        )
                        (SimpleCommand
                          words: [{(sort)}]
                          redirects: [
                            (Redir
                              op: <Redir_Great '>'>
                              fd: 16777215
                              arg_word: {($ VSub_Name '$testout')}
                            )
                          ]
                        )
                      ]
                      negated: F
                    )
                    (AndOr
                      ops: [Op_DPipe]
                      children: [
                        (Pipeline
                          children: [
                            (C {(eval)} {(echo)} {(Lit_TildeLike '~') ($ VSub_Name '$USER') (/)})
                            (SimpleCommand
                              words: [{($ VSub_Name '$CMP')} {(-)} {($ VSub_Name '$testout')}]
                              redirects: [
                                (Redir
                                  op: <Redir_DGreat '>>'>
                                  fd: 16777215
                                  arg_word: {($ VSub_Name '$logfile')}
                                )
                              ]
                            )
                          ]
                          negated: F
                        )
                        (Assignment
                          keyword: Assign_None
                          pairs: [
                            (assign_pair
                              lhs: (LhsName name:failed)
                              op: Equal
                              rhs: {(1)}
                              spids: [4929]
                            )
                          ]
                          spids: [4929]
                        )
                      ]
                    )
                    (Pipeline
                      children: [
                        (C {(${ VSub_Name test_program_prefix)} 
                          {(${ VSub_Name common_objpfx) (posix/globtest)} {(-ctq)} {(DQ ($ VSub_Name '$testdir'))} 
                          {
                            (DQ ($ VSub_Name '$user') 
                              (EscapedLiteralPart
                                token: <Lit_EscapedChar '\\\\'>
                              ) (/)
                            )
                          }
                        )
                        (SimpleCommand
                          words: [{(sort)}]
                          redirects: [
                            (Redir
                              op: <Redir_Great '>'>
                              fd: 16777215
                              arg_word: {($ VSub_Name '$testout')}
                            )
                          ]
                        )
                      ]
                      negated: F
                    )
                    (AndOr
                      ops: [Op_DPipe]
                      children: [
                        (Pipeline
                          children: [
                            (C {(eval)} {(echo)} {(Lit_TildeLike '~') ($ VSub_Name '$USER') (/)})
                            (SimpleCommand
                              words: [{($ VSub_Name '$CMP')} {(-)} {($ VSub_Name '$testout')}]
                              redirects: [
                                (Redir
                                  op: <Redir_DGreat '>>'>
                                  fd: 16777215
                                  arg_word: {($ VSub_Name '$logfile')}
                                )
                              ]
                            )
                          ]
                          negated: F
                        )
                        (Assignment
                          keyword: Assign_None
                          pairs: [
                            (assign_pair
                              lhs: (LhsName name:failed)
                              op: Equal
                              rhs: {(1)}
                              spids: [4988]
                            )
                          ]
                          spids: [4988]
                        )
                      ]
                    )
                    (Pipeline
                      children: [
                        (C {(${ VSub_Name test_program_prefix)} 
                          {(${ VSub_Name common_objpfx) (posix/globtest)} {(-ctq)} {(DQ ($ VSub_Name '$testdir'))} {(DQ ($ VSub_Name '$user'))}
                        )
                        (SimpleCommand
                          words: [{(sort)}]
                          redirects: [
                            (Redir
                              op: <Redir_Great '>'>
                              fd: 16777215
                              arg_word: {($ VSub_Name '$testout')}
                            )
                          ]
                        )
                      ]
                      negated: F
                    )
                    (AndOr
                      ops: [Op_DPipe]
                      children: [
                        (Pipeline
                          children: [
                            (C {(eval)} {(echo)} {(Lit_TildeLike '~') ($ VSub_Name '$USER')})
                            (SimpleCommand
                              words: [{($ VSub_Name '$CMP')} {(-)} {($ VSub_Name '$testout')}]
                              redirects: [
                                (Redir
                                  op: <Redir_DGreat '>>'>
                                  fd: 16777215
                                  arg_word: {($ VSub_Name '$logfile')}
                                )
                              ]
                            )
                          ]
                          negated: F
                        )
                        (Assignment
                          keyword: Assign_None
                          pairs: [
                            (assign_pair
                              lhs: (LhsName name:failed)
                              op: Equal
                              rhs: {(1)}
                              spids: [5044]
                            )
                          ]
                          spids: [5044]
                        )
                      ]
                    )
                  ]
                  spids: [16777215 4872]
                )
              ]
              spids: [16777215 5048]
            )
          ]
          spids: [16777215 4836]
        )
      ]
      spids: [16777215 5050]
    )
    (If
      arms: [
        (if_arm
          cond: [
            (Sentence
              child: (C {(test)} {($ VSub_Name '$failed')} {(-ne)} {(0)})
              terminator: <Op_Semi ';'>
            )
          ]
          action: [
            (SimpleCommand
              words: [{(echo)} {(DQ ('Escape tests failed'))}]
              redirects: [
                (Redir
                  op: <Redir_DGreat '>>'>
                  fd: 16777215
                  arg_word: {($ VSub_Name '$logfile')}
                )
              ]
            )
            (Assignment
              keyword: Assign_None
              pairs: [(assign_pair lhs:(LhsName name:result) op:Equal rhs:{(1)} spids:[5077])]
              spids: [5077]
            )
          ]
          spids: [16777215 5063]
        )
      ]
      spids: [16777215 5080]
    )
    (If
      arms: [
        (if_arm
          cond: [
            (Sentence
              child: (C {(test)} {($ VSub_Name '$result')} {(-eq)} {(0)})
              terminator: <Op_Semi ';'>
            )
          ]
          action: [
            (C {(chmod)} {(777)} {($ VSub_Name '$testdir') (/noread)})
            (C {(rm)} {(-fr)} {($ VSub_Name '$testdir')} {($ VSub_Name '$testout')})
            (SimpleCommand
              words: [{(echo)} {(DQ ('All OK.'))}]
              redirects: [(Redir op:<Redir_Great '>'> fd:16777215 arg_word:{($ VSub_Name '$logfile')})]
            )
          ]
          spids: [16777215 5094]
        )
      ]
      spids: [16777215 5124]
    )
    (ControlFlow token:<ControlFlow_Exit exit> arg_word:{($ VSub_Name '$result')})
    (C {(Local)} {(Variables) (Lit_Other ':')})
  ]
)