(CommandList
  children: [
    (FuncDef
      name: start
      body: 
        (BraceGroup
          children: [
            (ForEach
              iter_name: i
              iter_words: [{(DQ ($ VSub_At "$@"))}]
              do_arg_iter: False
              body: 
                (DoGroup
                  children: [
                    (SimpleCommand
                      words: [
                        {(echo)}
                        {(DQ ($ VSub_Name "$i") (" *(rw,fsid=0,insecure,no_root_squash)"))}
                      ]
                      redirects: [
                        (Redir
                          op_id: Redir_DGreat
                          fd: -1
                          arg_word: {(/etc/exports)}
                          spids: [83]
                        )
                      ]
                    )
                    (C {(/bin/cp)} {(/tmp/index.html)} {($ VSub_Name "$i") (/)})
                    (C {(chmod)} {(644)} {($ VSub_Name "$i") (/index.html)})
                    (C {(echo)} {(DQ ("Serving ") ($ VSub_Name "$i"))})
                  ]
                  spids: [69 116]
                )
              spids: [63 67]
            )
            (Sentence
              child: 
                (SimpleCommand
                  words: [{(/usr/sbin/rpcinfo)} {(127.0.0.1)}]
                  redirects: [(Redir op_id:Redir_Great fd:-1 arg_word:{(/dev/null)} spids:[129])]
                )
              terminator: <Op_Semi ";">
            )
            (Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (LhsName name:s)
                  op: Equal
                  rhs: {($ VSub_QMark "$?")}
                  spids: [134]
                )
              ]
              spids: [134]
            )
            (If
              arms: [
                (if_arm
                  cond: [
                    (Sentence
                      child: (C {(Lit_Other "[")} {($ VSub_Name "$s")} {(-ne)} {(0)} {(Lit_Other "]")})
                      terminator: <Op_Semi ";">
                    )
                  ]
                  action: [(C {(echo)} {(DQ ("Starting rpcbind"))}) (C {(/usr/sbin/rpcbind)} {(-w)})]
                  spids: [-1 151]
                )
              ]
              spids: [-1 166]
            )
            (C {(mount)} {(-t)} {(nfsd)} {(nfds)} {(/proc/fs/nfsd)})
            (C {(/usr/sbin/rpc.mountd)} {(-N)} {(2)} {(-V)} {(3)} {(-N)} {(4)} {(-N)} {(4.1)})
            (C {(/usr/sbin/exportfs)} {(-r)})
            (C {(/usr/sbin/rpc.nfsd)} {(-G)} {(10)} {(-N)} {(2)} {(-V)} {(3)} {(-N)} {(4)} {(-N)} {(4.1)} {(2)})
            (C {(/usr/sbin/rpc.statd)} {(--no-notify)})
            (C {(echo)} {(DQ ("NFS started"))})
          ]
          spids: [50]
        )
      spids: [44 49]
    )
    (FuncDef
      name: stop
      body: 
        (BraceGroup
          children: [
            (C {(echo)} {(DQ ("Stopping NFS"))})
            (C {(/usr/sbin/rpc.nfsd)} {(0)})
            (C {(/usr/sbin/exportfs)} {(-au)})
            (C {(/usr/sbin/exportfs)} {(-f)})
            (C {(kill)} 
              {
                (CommandSubPart
                  command_list: (CommandList children:[(C {(pidof)} {(rpc.mountd)})])
                  left_token: <Left_CommandSub "$(">
                  spids: [293 299]
                )
              }
            )
            (C {(umount)} {(/proc/fs/nfsd)})
            (SimpleCommand
              words: [{(echo)}]
              redirects: [(Redir op_id:Redir_Great fd:-1 arg_word:{(/etc/exports)} spids:[309])]
            )
            (C {(exit)} {(0)})
          ]
          spids: [264]
        )
      spids: [258 263]
    )
    (C {(trap)} {(stop)} {(TERM)})
    (C {(start)} {(DQ ($ VSub_At "$@"))})
    (While
      cond: [(Sentence child:(C {(true)}) terminator:<Op_Semi ";">)]
      body: (DoGroup children:[(C {(sleep)} {(5)})] spids:[344351])
    )
  ]
)