(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 '&'>)
    (Until
      cond: [(C {(svok)} {(test.sv)})]
      body: (DoGroup children:[(C {(sleep)} {(1)})] spids:[32 39])
    )
    (Sentence child:(C {(svup)} {(test.sv)}) terminator:<Op_Semi ';'>)
    (C {(echo)} {($ VSub_QMark '$?')})
    (Sentence child:(C {(svup)} {(-l)} {(test.sv)}) terminator:<Op_Semi ';'>)
    (C {(echo)} {($ VSub_QMark '$?')})
    (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
    )
    (Sentence child:(C {(svc)} {(-x)} {(test.sv)}) terminator:<Op_Semi ';'>)
    (C {(echo)} {($ VSub_QMark '$?')})
    (C {(wait)})
    (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 '&'>)
    (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_id: Redir_DLess
          fd: 16777215
          body: 
            {
              (DQ ('#!/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')
              )
            }
          do_expansion: True
          here_end: EOF
          was_filled: T
          spids: [159]
        )
      ]
    )
    (Sentence
      child: (Pipeline children:[(C {(supervise)} {(test.sv)}) (C {(filter_svstat)})] negated:F)
      terminator: <Op_Amp '&'>
    )
    (Until
      cond: [(C {(svok)} {(test.sv)})]
      body: (DoGroup children:[(C {(sleep)} {(1)})] spids:[205 212])
    )
    (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_id: Redir_DLess
          fd: 16777215
          body: 
            {
              (DQ ('#!/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')
              )
            }
          do_expansion: True
          here_end: EOF
          was_filled: T
          spids: [233]
        )
      ]
    )
    (SimpleCommand
      words: [{(catexe)} {(test.sv/log)}]
      redirects: [
        (HereDoc
          op_id: Redir_DLess
          fd: 16777215
          body: {(DQ ('#!/bin/sh\n') ('exec cat\n'))}
          do_expansion: True
          here_end: EOF
          was_filled: T
          spids: [267]
        )
      ]
    )
    (Sentence
      child: (Pipeline children:[(C {(supervise)} {(test.sv)}) (C {(filter_svstat)})] negated:F)
      terminator: <Op_Amp '&'>
    )
    (Until
      cond: [(C {(svok)} {(test.sv)})]
      body: (DoGroup children:[(C {(sleep)} {(1)})] spids:[289 296])
    )
    (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_id:Redir_Great fd:16777215 arg_word:{(test.sv/run)} spids:[345])]
      spids: [319 343]
    )
    (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_id:Redir_Great fd:16777215 arg_word:{(test.sv/run2)} spids:[381])]
      spids: [355 379]
    )
    (C {(chmod)} {(755)} {(test.sv/run2)})
    (Sentence child:(C {(supervise)} {(test.sv)}) terminator:<Op_Amp '&'>)
    (Until
      cond: [(C {(svok)} {(test.sv)})]
      body: (DoGroup children:[(C {(sleep)} {(1)})] spids:[403 410])
    )
    (C {(svc)} {(-u)} {(test.sv)})
    (C {(wait)})
  ]
)