(command.CommandList
  children: [
    (command.ShFunction
      name: getpassword
      body: 
        (command.BraceGroup
          children: [
            (command.WhileUntil
              keyword: <KW_Until until>
              cond: [
                (command.Sentence
                  child: 
                    (C {(Lit_LBracket '[')} {(DQ ($ VSub_DollarName '$password'))} {(Lit_Equals '=')} 
                      {(DQ ($ VSub_DollarName '$rpassword'))} {(-a)} {(-n)} {(DQ ($ VSub_DollarName '$password'))} {(Lit_RBracket ']')}
                    )
                  terminator: <Op_Semi ';'>
                )
              ]
              body: 
                (command.DoGroup
                  children: [
                    (command.Sentence
                      child: 
                        (C {(read)} {(-s)} {(-p)} 
                          {(DQ ("Enter a password for user '") ($ VSub_Number '$1') ("' : "))} {(password)}
                        )
                      terminator: <Op_Semi ';'>
                    )
                    (command.Simple
                      words: [{(echo)}]
                      redirects: [(redir.Redir op:<Redir_GreatAnd '>&'> fd:16777215 arg_word:{(2)})]
                    )
                    (command.Sentence
                      child: 
                        (C {(read)} {(-s)} {(-p)} 
                          {(DQ ("Reenter password for user '") ($ VSub_Number '$1') ("' : "))} {(rpassword)}
                        )
                      terminator: <Op_Semi ';'>
                    )
                    (command.Simple
                      words: [{(echo)}]
                      redirects: [(redir.Redir op:<Redir_GreatAnd '>&'> fd:16777215 arg_word:{(2)})]
                    )
                  ]
                )
            )
            (C {(echo)} {(DQ ($ VSub_DollarName '$password'))})
          ]
        )
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:pw)
          op: Equal
          rhs: 
            {
              (command_sub
                left_token: <Left_Backtick '`'>
                command_list: 
                  (command.CommandList
                    children: [
                      (C {(getpassword)} 
                        {
                          (DQ 
                            (braced_var_sub
                              token: <VSub_Number 1>
                              suffix_op: (suffix_op.Unary op_id:VTest_ColonHyphen arg_word:{(blah)})
                            )
                          )
                        }
                      )
                    ]
                  )
              )
            }
        )
      ]
    )
    (C {(echo)} {(DQ ("password is '") ($ VSub_DollarName '$pw') ("'"))})
  ]
)