(CommandList
  children: [
    (C {(echo)} {(SQ <'--- supervise starts, svok works, svup works, svstat works, svc -x works'>)})
    (Sentence child:(C {(supervise)} {(test.sv)}) terminator:<Op_Amp '&'>)
    (WhileUntil
      keyword: <KW_Until until>
      cond: [(C {(svok)} {(test.sv)})]
      body: (DoGroup children:[(C {(sleep)} {(1)})] spids:[32 39])
    )
    (CommandList
      children: [
        (Sentence child:(C {(svup)} {(test.sv)}) terminator:<Op_Semi ';'>)
        (C {(echo)} {($ VSub_QMark '$?')})
      ]
    )
    (CommandList
      children: [
        (Sentence child:(C {(svup)} {(-l)} {(test.sv)}) terminator:<Op_Semi ';'>)
        (C {(echo)} {($ VSub_QMark '$?')})
      ]
    )
    (CommandList
      children: [
        (Sentence child:(C {(svup)} {(-L)} {(test.sv)}) terminator:<Op_Semi ';'>)
        (C {(echo)} {($ VSub_QMark '$?')})
      ]
    )
    (Pipeline
      children: [
        (Subshell
          child: 
            (CommandList
              children: [
                (Sentence child:(C {(svstat)} {(test.sv)}) terminator:<Op_Semi ';'>)
                (Sentence
                  child: (C {(echo)} {($ VSub_QMark '$?')})
                  terminator: <Op_Semi ';'>
                )
              ]
            )
          spids: [72 84]
        )
        (C {(filter_svstat)})
      ]
      negated: F
    )
    (CommandList
      children: [
        (Sentence child:(C {(svc)} {(-x)} {(test.sv)}) terminator:<Op_Semi ';'>)
        (C {(echo)} {($ VSub_QMark '$?')})
      ]
    )
    (C {(wait)})
    (CommandList
      children: [
        (Sentence child:(C {(svstat)} {(test.sv)}) terminator:<Op_Semi ';'>)
        (C {(echo)} {($ VSub_QMark '$?')})
      ]
    )
    (C {(echo)} {(SQ <'--- svc -ox works'>)})
    (Sentence child:(C {(supervise)} {(test.sv)}) terminator:<Op_Amp '&'>)
    (WhileUntil
      keyword: <KW_Until until>
      cond: [(C {(svok)} {(test.sv)})]
      body: (DoGroup children:[(C {(sleep)} {(1)})] spids:[131 138])
    )
    (C {(svc)} {(-ox)} {(test.sv)})
    (C {(wait)})
    (C {(echo)} {(SQ <'--- svstat and svup work for up services'>)})
    (SimpleCommand
      words: [{(catexe)} {(test.sv/run)}]
      redirects: [
        (HereDoc
          op: <Redir_DLess '<<'>
          fd: 16777215
          here_begin: {(EOF)}
          here_end_span_id: 189
          stdin_parts: [
            ('#!/bin/sh\n')
            ('sleep 1\n')
            ('svstat .\n')
            ('echo ')
            ($ VSub_QMark '$?')
            ('\n')
            ('svstat -l .\n')
            ('echo ')
            ($ VSub_QMark '$?')
            ('\n')
            ('svstat -L .\n')
            ('echo ')
            ($ VSub_QMark '$?')
            ('\n')
            ('svup .\n')
            ('echo ')
            (EscapedLiteralPart token:<Lit_EscapedChar '\\$'>)
            ('?\n')
            ('svup -L .\n')
            ('echo ')
            (EscapedLiteralPart token:<Lit_EscapedChar '\\$'>)
            ('?\n')
            ('svup -l .\n')
            ('echo ')
            (EscapedLiteralPart token:<Lit_EscapedChar '\\$'>)
            ('?\n')
          ]
        )
      ]
    )
    (Sentence
      child: (Pipeline children:[(C {(supervise)} {(test.sv)}) (C {(filter_svstat)})] negated:F)
      terminator: <Op_Amp '&'>
    )
    (WhileUntil
      keyword: <KW_Until until>
      cond: [(C {(svok)} {(test.sv)})]
      body: (DoGroup children:[(C {(sleep)} {(1)})] spids:[206 213])
    )
    (C {(svc)} {(-ox)} {(test.sv)})
    (C {(wait)})
    (C {(echo)} {(SQ <'--- svstat and svup work for logged services'>)})
    (SimpleCommand
      words: [{(catexe)} {(test.sv/run)}]
      redirects: [
        (HereDoc
          op: <Redir_DLess '<<'>
          fd: 16777215
          here_begin: {(EOF)}
          here_end_span_id: 264
          stdin_parts: [
            ('#!/bin/sh\n')
            ('sleep 1\n')
            ('svstat .\n')
            ('echo ')
            ($ VSub_QMark '$?')
            ('\n')
            ('svstat -l .\n')
            ('echo ')
            ($ VSub_QMark '$?')
            ('\n')
            ('svstat -L .\n')
            ('echo ')
            ($ VSub_QMark '$?')
            ('\n')
            ('svup .\n')
            ('echo ')
            (EscapedLiteralPart token:<Lit_EscapedChar '\\$'>)
            ('?\n')
            ('svup -L .\n')
            ('echo ')
            (EscapedLiteralPart token:<Lit_EscapedChar '\\$'>)
            ('?\n')
            ('svup -l .\n')
            ('echo ')
            (EscapedLiteralPart token:<Lit_EscapedChar '\\$'>)
            ('?\n')
          ]
        )
      ]
    )
    (SimpleCommand
      words: [{(catexe)} {(test.sv/log)}]
      redirects: [
        (HereDoc
          op: <Redir_DLess '<<'>
          fd: 16777215
          here_begin: {(EOF)}
          here_end_span_id: 275
          stdin_parts: [('#!/bin/sh\n') ('exec cat\n')]
        )
      ]
    )
    (Sentence
      child: (Pipeline children:[(C {(supervise)} {(test.sv)}) (C {(filter_svstat)})] negated:F)
      terminator: <Op_Amp '&'>
    )
    (WhileUntil
      keyword: <KW_Until until>
      cond: [(C {(svok)} {(test.sv)})]
      body: (DoGroup children:[(C {(sleep)} {(1)})] spids:[292 299])
    )
    (C {(svc)} {(-Lolox)} {(test.sv)})
    (C {(wait)})
    (C {(rm)} {(-f)} {(test.sv/log)})
    (C {(echo)} {(SQ <'--- svc -u works'>)})
    (Subshell
      child: 
        (CommandList
          children: [
            (Sentence child:(C {(echo)} {(SQ <'#!/bin/sh'>)}) terminator:<Op_Semi ';'>)
            (Sentence child:(C {(echo)} {(echo)} {(first)}) terminator:<Op_Semi ';'>)
            (C {(echo)} {(mv)} {(run2)} {(run)})
          ]
        )
      redirects: [(Redir op:<Redir_Great '>'> fd:16777215 arg_word:{(test.sv/run)})]
      spids: [322 346]
    )
    (C {(chmod)} {(755)} {(test.sv/run)})
    (Subshell
      child: 
        (CommandList
          children: [
            (Sentence child:(C {(echo)} {(SQ <'#!/bin/sh'>)}) terminator:<Op_Semi ';'>)
            (Sentence child:(C {(echo)} {(echo)} {(second)}) terminator:<Op_Semi ';'>)
            (C {(echo)} {(svc)} {(-x)} {(.)})
          ]
        )
      redirects: [(Redir op:<Redir_Great '>'> fd:16777215 arg_word:{(test.sv/run2)})]
      spids: [358 382]
    )
    (C {(chmod)} {(755)} {(test.sv/run2)})
    (Sentence child:(C {(supervise)} {(test.sv)}) terminator:<Op_Amp '&'>)
    (WhileUntil
      keyword: <KW_Until until>
      cond: [(C {(svok)} {(test.sv)})]
      body: (DoGroup children:[(C {(sleep)} {(1)})] spids:[406 413])
    )
    (C {(svc)} {(-u)} {(test.sv)})
    (C {(wait)})
  ]
)