(CommandList
  children: [
    (FuncDef
      name: _pkgutil_url2catalog
      body: 
        (BraceGroup
          children: [
            (Assignment
              keyword: Assign_Local
              pairs: [
                (assign_pair
                  lhs: (LhsName name:filename)
                  op: Equal
                  rhs: {(DQ ($ VSub_Number '$1'))}
                  spids: [16]
                )
              ]
              spids: [14]
            )
            (Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (LhsName name:filename)
                  op: Equal
                  rhs: 
                    {
                      (DQ 
                        (BracedVarSub
                          token: <VSub_Name filename>
                          suffix_op: 
                            (StringUnary
                              op_id: VOp1_DPound
                              arg_word: {('*:') (Lit_Slash /) (Lit_Slash /)}
                            )
                          spids: [25 31]
                        )
                      )
                    }
                  spids: [23]
                )
              ]
              spids: [23]
            )
            (Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (LhsName name:filename)
                  op: Equal
                  rhs: 
                    {
                      (DQ 
                        (BracedVarSub
                          token: <VSub_Name filename>
                          suffix_op: 
                            (PatSub
                              pat: {(EscapedLiteralPart token:<Lit_EscapedChar '\\/'>)}
                              replace: {(_)}
                              do_all: True
                              do_prefix: False
                              do_suffix: False
                            )
                          spids: [37 44]
                        )
                      )
                    }
                  spids: [35]
                )
              ]
              spids: [35]
            )
            (Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (LhsName name:filename)
                  op: Equal
                  rhs: 
                    {
                      (DQ (/var/opt/csw/pkgutil/catalog.) (${ VSub_Name filename) (_) 
                        (CommandSubPart
                          command_list: (CommandList children:[(C {(uname)} {(-p)})])
                          left_token: <Left_CommandSub '$('>
                          spids: [55 59]
                        ) (_) 
                        (CommandSubPart
                          command_list: (CommandList children:[(C {(uname)} {(-r)})])
                          left_token: <Left_CommandSub '$('>
                          spids: [61 65]
                        )
                      )
                    }
                  spids: [48]
                )
              ]
              spids: [48]
            )
            (C {(echo)} {(DQ ($ VSub_Name '$filename'))})
          ]
          spids: [11]
        )
      spids: [7 10]
    )
    (FuncDef
      name: _pkgutil
      body: 
        (BraceGroup
          children: [
            (Assignment
              keyword: Assign_Local
              pairs: [
                (assign_pair lhs:(LhsName name:cur) op:Equal spids:[88])
                (assign_pair lhs:(LhsName name:prev) op:Equal spids:[90])
                (assign_pair lhs:(LhsName name:words) op:Equal spids:[92])
                (assign_pair lhs:(LhsName name:cword) op:Equal spids:[94])
              ]
              spids: [86]
            )
            (AndOr
              children: [
                (C {(_init_completion)} {(-n)} {(Lit_Other ':')})
                (ControlFlow token:<ControlFlow_Return return>)
              ]
              op_id: Op_DPipe
            )
            (Assignment
              keyword: Assign_Local
              pairs: [
                (assign_pair lhs:(LhsName name:command) op:Equal spids:[112])
                (assign_pair lhs:(LhsName name:catalog_files) op:Equal spids:[114])
                (assign_pair
                  lhs: (LhsName name:configuration_files)
                  op: Equal
                  spids: [116]
                )
              ]
              spids: [110]
            )
            (Assignment
              keyword: Assign_Declare
              flags: [-a]
              pairs: [
                (assign_pair
                  lhs: (LhsName name:configuration_files)
                  op: Equal
                  rhs: 
                    {
                      (ArrayLiteralPart
                        words: [{(DQ (/opt/csw/etc/pkgutil.conf))} {(DQ (/etc/opt/csw/pkgutil.conf))}]
                      )
                    }
                  spids: [123]
                )
              ]
              spids: [119]
            )
            (Assignment
              keyword: Assign_Declare
              flags: [-a]
              pairs: [
                (assign_pair
                  lhs: (LhsName name:catalog_files)
                  op: Equal
                  rhs: {(ArrayLiteralPart)}
                  spids: [139]
                )
              ]
              spids: [135]
            )
            (Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (LhsName name:i)
                  op: Equal
                  rhs: {($ VSub_Name '$cword')}
                  spids: [145]
                )
              ]
              spids: [145]
            )
            (While
              cond: [
                (Sentence
                  child: 
                    (DBracket
                      expr: 
                        (BoolBinary
                          op_id: BoolBinary_gt
                          left: 
                            {
                              (ArithSubPart
                                anode: (UnaryAssign op_id:Node_PostDMinus child:(LhsName name:i))
                                spids: [153 157]
                              )
                            }
                          right: {(1)}
                        )
                    )
                  terminator: <Op_Semi ';'>
                )
              ]
              body: 
                (DoGroup
                  children: [
                    (If
                      arms: [
                        (if_arm
                          cond: [
                            (Sentence
                              child: 
                                (DBracket
                                  expr: 
                                    (BoolBinary
                                      op_id: BoolBinary_GlobDEqual
                                      left: 
                                        {
                                          (DQ 
                                            (BracedVarSub
                                              token: <VSub_Name words>
                                              bracket_op: 
                                                (ArrayIndex
                                                  expr: (ArithWord w:{($ VSub_Name '$i')})
                                                )
                                              spids: [174 179]
                                            )
                                          )
                                        }
                                      right: {(-) (ExtGlobPart op:<ExtGlob_At '@('> spids:[185 189])}
                                    )
                                )
                              terminator: <Op_Semi ';'>
                            )
                          ]
                          action: [
                            (Assignment
                              keyword: Assign_Local
                              pairs: [
                                (assign_pair
                                  lhs: (LhsName name:url)
                                  op: Equal
                                  rhs: 
                                    {
                                      (DQ 
                                        (BracedVarSub
                                          token: <VSub_Name words>
                                          bracket_op: 
                                            (ArrayIndex
                                              expr: 
                                                (ArithWord
                                                  w: 
                                                    {
                                                      (ArithSubPart
                                                        anode: 
                                                          (ArithBinary
                                                            op_id: Arith_Plus
                                                            left: (ArithVarRef name:i)
                                                            right: (ArithWord w:{(Lit_Digits 1)})
                                                          )
                                                        spids: [204 209]
                                                      )
                                                    }
                                                )
                                            )
                                          spids: [201 211]
                                        )
                                      )
                                    }
                                  spids: [199]
                                )
                              ]
                              spids: [197]
                            )
                            (Assignment
                              keyword: Assign_Local
                              pairs: [
                                (assign_pair
                                  lhs: (LhsName name:catalog)
                                  op: Equal
                                  rhs: 
                                    {
                                      (CommandSubPart
                                        command_list: 
                                          (CommandList
                                            children: [
                                              (C {(_pkgutil_url2catalog)} {(DQ ($ VSub_Name '$url'))})
                                            ]
                                          )
                                        left_token: <Left_CommandSub '$('>
                                        spids: [218 224]
                                      )
                                    }
                                  spids: [217]
                                )
                              ]
                              spids: [215]
                            )
                            (Assignment
                              keyword: Assign_None
                              pairs: [
                                (assign_pair
                                  lhs: (LhsName name:catalog_files)
                                  op: Equal
                                  rhs: {(ArrayLiteralPart words:[{(DQ ($ VSub_Name '$catalog'))}])}
                                  spids: [227]
                                )
                              ]
                              spids: [227]
                            )
                          ]
                          spids: [16777215 194]
                        )
                        (if_arm
                          cond: [
                            (Sentence
                              child: 
                                (DBracket
                                  expr: 
                                    (BoolBinary
                                      op_id: BoolBinary_GlobDEqual
                                      left: 
                                        {
                                          (DQ 
                                            (BracedVarSub
                                              token: <VSub_Name words>
                                              bracket_op: 
                                                (ArrayIndex
                                                  expr: (ArithWord w:{($ VSub_Name '$i')})
                                                )
                                              spids: [240 245]
                                            )
                                          )
                                        }
                                      right: {(--config)}
                                    )
                                )
                              terminator: <Op_Semi ';'>
                            )
                          ]
                          action: [
                            (Assignment
                              keyword: Assign_None
                              pairs: [
                                (assign_pair
                                  lhs: (LhsName name:configuration_files)
                                  op: Equal
                                  rhs: 
                                    {
                                      (ArrayLiteralPart
                                        words: [
                                          {
                                            (DQ 
                                              (CommandSubPart
                                                command_list: 
                                                  (CommandList
                                                    children: [
                                                      (C {(dequote)} 
                                                        {
                                                          (BracedVarSub
                                                            token: <VSub_Name words>
                                                            bracket_op: 
                                                              (ArrayIndex
                                                                expr: 
                                                                  (ArithWord
                                                                    w: 
                                                                      {
                                                                        (ArithSubPart
                                                                          anode: 
                                                                            (ArithBinary
                                                                              op_id: Arith_Plus
                                                                              left: 
                                                                                (ArithVarRef
                                                                                  name: i
                                                                                )
                                                                              right: 
                                                                                (ArithWord
                                                                                  w: {(Lit_Digits 1)}
                                                                                )
                                                                            )
                                                                          spids: [268 273]
                                                                        )
                                                                      }
                                                                  )
                                                              )
                                                            spids: [265 275]
                                                          )
                                                        }
                                                      )
                                                    ]
                                                  )
                                                left_token: <Left_CommandSub '$('>
                                                spids: [262 276]
                                              )
                                            )
                                          }
                                        ]
                                      )
                                    }
                                  spids: [258]
                                )
                              ]
                              spids: [258]
                            )
                          ]
                          spids: [235 255]
                        )
                        (if_arm
                          cond: [
                            (Sentence
                              child: 
                                (DBracket
                                  expr: 
                                    (BoolBinary
                                      op_id: BoolBinary_GlobDEqual
                                      left: 
                                        {
                                          (DQ 
                                            (BracedVarSub
                                              token: <VSub_Name words>
                                              bracket_op: 
                                                (ArrayIndex
                                                  expr: (ArithWord w:{($ VSub_Name '$i')})
                                                )
                                              spids: [287 292]
                                            )
                                          )
                                        }
                                      right: {(-) (ExtGlobPart op:<ExtGlob_At '@('> spids:[298 316])}
                                    )
                                )
                              terminator: <Op_Semi ';'>
                            )
                          ]
                          action: [
                            (Assignment
                              keyword: Assign_None
                              pairs: [
                                (assign_pair
                                  lhs: (LhsName name:command)
                                  op: Equal
                                  rhs: 
                                    {
                                      (DQ 
                                        (BracedVarSub
                                          token: <VSub_Name words>
                                          bracket_op: 
                                            (ArrayIndex
                                              expr: (ArithWord w:{($ VSub_Name '$i')})
                                            )
                                          spids: [326 331]
                                        )
                                      )
                                    }
                                  spids: [324]
                                )
                              ]
                              spids: [324]
                            )
                          ]
                          spids: [282 321]
                        )
                      ]
                      spids: [16777215 336]
                    )
                  ]
                  spids: [166 339]
                )
            )
            (If
              arms: [
                (if_arm
                  cond: [
                    (Sentence
                      child: 
                        (DBracket
                          expr: 
                            (BoolBinary
                              op_id: BoolBinary_GlobDEqual
                              left: {(DQ ($ VSub_Name '$prev'))}
                              right: {(-) (ExtGlobPart op:<ExtGlob_At '@('> spids:[354 362])}
                            )
                        )
                      terminator: <Op_Semi ';'>
                    )
                  ]
                  action: [
                    (C {(_filedir)} {(-d)})
                    (ControlFlow token:<ControlFlow_Return return> arg_word:{(0)})
                  ]
                  spids: [16777215 367]
                )
              ]
              spids: [16777215 380]
            )
            (If
              arms: [
                (if_arm
                  cond: [
                    (Sentence
                      child: 
                        (DBracket
                          expr: 
                            (BoolBinary
                              op_id: BoolBinary_GlobDEqual
                              left: {(DQ ($ VSub_Name '$prev'))}
                              right: {(-) (ExtGlobPart op:<ExtGlob_At '@('> spids:[395 401])}
                            )
                        )
                      terminator: <Op_Semi ';'>
                    )
                  ]
                  action: [
                    (C {(_filedir)})
                    (ControlFlow token:<ControlFlow_Return return> arg_word:{(0)})
                  ]
                  spids: [16777215 406]
                )
              ]
              spids: [16777215 417]
            )
            (If
              arms: [
                (if_arm
                  cond: [
                    (Sentence
                      child: 
                        (DBracket
                          expr: 
                            (BoolBinary
                              op_id: BoolBinary_GlobDEqual
                              left: {(DQ ($ VSub_Name '$prev'))}
                              right: {(-) (ExtGlobPart op:<ExtGlob_At '@('> spids:[432 436])}
                            )
                        )
                      terminator: <Op_Semi ';'>
                    )
                  ]
                  action: [
                    (C {(compopt)} {(-o)} {(nospace)})
                    (Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (LhsName name:COMPREPLY)
                          op: Equal
                          rhs: 
                            {
                              (ArrayLiteralPart
                                words: [
                                  {
                                    (CommandSubPart
                                      command_list: 
                                        (CommandList
                                          children: [
                                            (C {(compgen)} {(-W)} 
                                              {
                                                (DQ 
                                                  (
'mirror: pkgaddopts: pkgrmopts: wgetopts: use_gpg: use_md5: pkgliststyle: maxpkglist: noncsw: stop_on_hook_soft_error: exclude_pattern: gpg_homedir: root_path: deptree_filter_common: show_current: catalog_not_cached: catalog_update:'
                                                  )
                                                )
                                              } {(--)} {($ VSub_Name '$cur')}
                                            )
                                          ]
                                        )
                                      left_token: <Left_CommandSub '$('>
                                      spids: [454 466]
                                    )
                                  }
                                ]
                              )
                            }
                          spids: [451]
                        )
                      ]
                      spids: [451]
                    )
                    (ControlFlow token:<ControlFlow_Return return> arg_word:{(0)})
                  ]
                  spids: [16777215 441]
                )
              ]
              spids: [16777215 476]
            )
            (If
              arms: [
                (if_arm
                  cond: [
                    (Sentence
                      child: 
                        (DBracket
                          expr: 
                            (BoolBinary
                              op_id: BoolBinary_GlobDEqual
                              left: {(DQ ($ VSub_Name '$prev'))}
                              right: {(ExtGlobPart op:<ExtGlob_At '@('> spids:[490 494])}
                            )
                        )
                      terminator: <Op_Semi ';'>
                    )
                  ]
                  action: [
                    (Assignment
                      keyword: Assign_Local
                      pairs: [
                        (assign_pair
                          lhs: (LhsName name:colonprefixes)
                          op: Equal
                          rhs: 
                            {
                              (BracedVarSub
                                token: <VSub_Name cur>
                                suffix_op: 
                                  (StringUnary
                                    op_id: VOp1_Percent
                                    arg_word: 
                                      {
                                        (DQ 
                                          (BracedVarSub
                                            token: <VSub_Name cur>
                                            suffix_op: 
                                              (StringUnary
                                                op_id: VOp1_DPound
                                                arg_word: {('*:')}
                                              )
                                            spids: [521 525]
                                          )
                                        )
                                      }
                                  )
                                spids: [517 527]
                              )
                            }
                          spids: [516]
                        )
                      ]
                      spids: [514]
                    )
                    (Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (LhsName name:COMPREPLY)
                          op: Equal
                          rhs: 
                            {
                              (ArrayLiteralPart
                                words: [
                                  {
                                    (CommandSubPart
                                      command_list: 
                                        (CommandList
                                          children: [
                                            (C {(compgen)} {(-W)} 
                                              {
                                                (DQ 
                                                  (
'sparc:5.9 sparc:5.10 sparc:5.11 i386:5.9 i386:5.10 i386:5.11'
                                                  )
                                                )
                                              } {(--)} {($ VSub_Name '$cur')}
                                            )
                                          ]
                                        )
                                      left_token: <Left_CommandSub '$('>
                                      spids: [533 545]
                                    )
                                  }
                                ]
                              )
                            }
                          spids: [530]
                        )
                      ]
                      spids: [530]
                    )
                    (Assignment
                      keyword: Assign_Local
                      pairs: [
                        (assign_pair
                          lhs: (LhsName name:i)
                          op: Equal
                          rhs: 
                            {
                              (BracedVarSub
                                token: <VSub_Name COMPREPLY>
                                prefix_op: VSub_Pound
                                bracket_op: (WholeArray op_id:Arith_Star)
                                spids: [553 559]
                              )
                            }
                          spids: [552]
                        )
                      ]
                      spids: [550]
                    )
                    (While
                      cond: [
                        (Sentence
                          child: 
                            (C {(Lit_Other '[')} 
                              {
                                (ArithSubPart
                                  anode: (UnaryAssign op_id:Arith_DMinus child:(LhsName name:i))
                                  spids: [566 570]
                                )
                              } {(-ge)} {(0)} {(Lit_Other ']')}
                            )
                          terminator: <Op_Semi ';'>
                        )
                      ]
                      body: 
                        (DoGroup
                          children: [
                            (C 
                              {(COMPREPLY) (Lit_Other '[') ($ VSub_Name '$i') (Lit_Other ']') 
                                (Lit_Other '=') 
                                (BracedVarSub
                                  token: <VSub_Name COMPREPLY>
                                  bracket_op: (ArrayIndex expr:(ArithWord w:{($ VSub_Name '$i')}))
                                  suffix_op: 
                                    (StringUnary
                                      op_id: VOp1_Pound
                                      arg_word: {(DQ ($ VSub_Name '$colonprefixes'))}
                                    )
                                  spids: [587 596]
                                )
                              }
                            )
                          ]
                          spids: [579 599]
                        )
                    )
                    (ControlFlow token:<ControlFlow_Return return> arg_word:{(0)})
                  ]
                  spids: [16777215 499]
                )
              ]
              spids: [16777215 607]
            )
            (If
              arms: [
                (if_arm
                  cond: [
                    (Sentence
                      child: 
                        (AndOr
                          children: [
                            (DBracket
                              expr: (BoolUnary op_id:BoolUnary_n child:{(DQ ($ VSub_Name '$command'))})
                            )
                            (DBracket
                              expr: 
                                (LogicalNot
                                  child: 
                                    (BoolBinary
                                      op_id: BoolBinary_GlobDEqual
                                      left: {(DQ ($ VSub_Name '$cur'))}
                                      right: {(-) (Lit_Other '*')}
                                    )
                                )
                            )
                          ]
                          op_id: Op_DAmp
                        )
                      terminator: <Op_Semi ';'>
                    )
                  ]
                  action: [
                    (Assignment
                      keyword: Assign_Local
                      pairs: [
                        (assign_pair
                          lhs: (LhsName name:mirrors)
                          op: Equal
                          spids: [647]
                        )
                        (assign_pair
                          lhs: (LhsName name:mirror_url)
                          op: Equal
                          spids: [649]
                        )
                      ]
                      spids: [645]
                    )
                    (Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (LhsName name:mirrors)
                          op: Equal
                          rhs: 
                            {
                              (CommandSubPart
                                command_list: 
                                  (CommandList
                                    children: [
                                      (C {(awk)} {(-F) (Lit_Other '=')} 
                                        {(SQ <' $1 ~ /^ *mirror *$/ { print $2 }'>)} 
                                        {
                                          (BracedVarSub
                                            token: <VSub_Name configuration_files>
                                            bracket_op: (WholeArray op_id:Lit_At)
                                            spids: [663 668]
                                          )
                                        }
                                      )
                                    ]
                                  )
                                left_token: <Left_CommandSub '$('>
                                spids: [653 669]
                              )
                            }
                          spids: [652]
                        )
                      ]
                      spids: [652]
                    )
                    (Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (LhsName name:mirrors)
                          op: Equal
                          rhs: 
                            {
                              (BracedVarSub
                                token: <VSub_Name mirrors>
                                suffix_op: 
                                  (StringUnary
                                    op_id: VTest_ColonHyphen
                                    arg_word: 
                                      {('http:') (Lit_Slash /) (Lit_Slash /) (mirror.opencsw.org) 
                                        (Lit_Slash /) (opencsw) (Lit_Slash /) (testing)
                                      }
                                  )
                                spids: [673 684]
                              )
                            }
                          spids: [672]
                        )
                      ]
                      spids: [672]
                    )
                    (ForEach
                      iter_name: mirror_url
                      iter_words: [{($ VSub_Name '$mirrors')}]
                      do_arg_iter: False
                      body: 
                        (DoGroup
                          children: [
                            (Assignment
                              keyword: Assign_Local
                              pairs: [
                                (assign_pair
                                  lhs: (LhsName name:catalog)
                                  op: Equal
                                  rhs: 
                                    {
                                      (CommandSubPart
                                        command_list: 
                                          (CommandList
                                            children: [
                                              (C {(_pkgutil_url2catalog)} 
                                                {(DQ ($ VSub_Name '$mirror_url'))}
                                              )
                                            ]
                                          )
                                        left_token: <Left_CommandSub '$('>
                                        spids: [702 708]
                                      )
                                    }
                                  spids: [701]
                                )
                              ]
                              spids: [699]
                            )
                            (Assignment
                              keyword: Assign_None
                              pairs: [
                                (assign_pair
                                  lhs: (LhsName name:catalog_files)
                                  op: Equal
                                  rhs: 
                                    {
                                      (ArrayLiteralPart
                                        words: [
                                          {
                                            (DQ 
                                              (BracedVarSub
                                                token: <VSub_Name catalog_files>
                                                bracket_op: (WholeArray op_id:Lit_At)
                                                spids: [715 720]
                                              )
                                            )
                                          }
                                          {(DQ ($ VSub_Name '$catalog'))}
                                        ]
                                      )
                                    }
                                  spids: [711]
                                )
                              ]
                              spids: [711]
                            )
                          ]
                          spids: [696 730]
                        )
                      spids: [692 694]
                    )
                    (If
                      arms: [
                        (if_arm
                          cond: [
                            (Sentence
                              child: 
                                (DBracket
                                  expr: 
                                    (BoolBinary
                                      op_id: BoolBinary_GlobDEqual
                                      left: {(DQ ($ VSub_Name '$command'))}
                                      right: {(-) (ExtGlobPart op:<ExtGlob_At '@('> spids:[745 755])}
                                    )
                                )
                              terminator: <Op_Semi ';'>
                            )
                          ]
                          action: [
                            (Assignment
                              keyword: Assign_Local
                              pairs: [
                                (assign_pair
                                  lhs: (LhsName name:packages_list)
                                  op: Equal
                                  rhs: 
                                    {
                                      (CommandSubPart
                                        command_list: 
                                          (CommandList
                                            children: [
                                              (C {(awk)} 
                                                {
                                                  (SQ 
                                                    <
' $0 ~ /BEGIN PGP SIGNATURE/ { exit } $1 ~ /^Hash:/ || $1 ~ /^ *(-|#|$)/ { next } { print $1 }'
                                                    >
                                                  )
                                                } 
                                                {
                                                  (DQ 
                                                    (BracedVarSub
                                                      token: <VSub_Name catalog_files>
                                                      bracket_op: (WholeArray op_id:Lit_At)
                                                      spids: [774 779]
                                                    )
                                                  )
                                                }
                                              )
                                            ]
                                          )
                                        left_token: <Left_CommandSub '$('>
                                        spids: [766 781]
                                      )
                                    }
                                  spids: [765]
                                )
                              ]
                              spids: [763]
                            )
                            (Assignment
                              keyword: Assign_None
                              pairs: [
                                (assign_pair
                                  lhs: (LhsName name:COMPREPLY)
                                  op: Equal
                                  rhs: 
                                    {
                                      (ArrayLiteralPart
                                        words: [
                                          {
                                            (CommandSubPart
                                              command_list: 
                                                (CommandList
                                                  children: [
                                                    (C {(compgen)} {(-W)} 
                                                      {(DQ (${ VSub_Name packages_list))} {(--)} {($ VSub_Name '$cur')}
                                                    )
                                                  ]
                                                )
                                              left_token: <Left_CommandSub '$('>
                                              spids: [787 801]
                                            )
                                          }
                                        ]
                                      )
                                    }
                                  spids: [784]
                                )
                              ]
                              spids: [784]
                            )
                          ]
                          spids: [16777215 760]
                        )
                        (if_arm
                          cond: [
                            (Sentence
                              child: 
                                (DBracket
                                  expr: 
                                    (BoolBinary
                                      op_id: BoolBinary_GlobDEqual
                                      left: {(DQ ($ VSub_Name '$command'))}
                                      right: {(ExtGlobPart op:<ExtGlob_At '@('> spids:[817 821])}
                                    )
                                )
                              terminator: <Op_Semi ';'>
                            )
                          ]
                          action: [
                            (Assignment
                              keyword: Assign_Local
                              pairs: [
                                (assign_pair
                                  lhs: (LhsName name:packages_list)
                                  op: Equal
                                  rhs: 
                                    {
                                      (CommandSubPart
                                        command_list: 
                                          (CommandList
                                            children: [
                                              (Pipeline
                                                children: [
                                                  (C {(pkginfo)})
                                                  (C {(awk)} 
                                                    {(SQ <' $2 ~ /^CSW/ { printf ("%s|",$2) }'>)}
                                                  )
                                                ]
                                                negated: False
                                              )
                                            ]
                                          )
                                        left_token: <Left_CommandSub '$('>
                                        spids: [832 842]
                                      )
                                    }
                                  spids: [831]
                                )
                              ]
                              spids: [829]
                            )
                            (Assignment
                              keyword: Assign_None
                              pairs: [
                                (assign_pair
                                  lhs: (LhsName name:packages_list)
                                  op: Equal
                                  rhs: 
                                    {
                                      (BracedVarSub
                                        token: <VSub_Name packages_list>
                                        suffix_op: (StringUnary op_id:VOp1_Percent arg_word:{('|')})
                                        spids: [846 850]
                                      )
                                    }
                                  spids: [845]
                                )
                              ]
                              spids: [845]
                            )
                            (Assignment
                              keyword: Assign_None
                              pairs: [
                                (assign_pair
                                  lhs: (LhsName name:packages_list)
                                  op: Equal
                                  rhs: 
                                    {
                                      (CommandSubPart
                                        command_list: 
                                          (CommandList
                                            children: [
                                              (C {(nawk)} 
                                                {
                                                  (DQ (' ') 
                                                    (EscapedLiteralPart
                                                      token: <Lit_EscapedChar '\\$'>
                                                    ) ('3 ~ /^') ($ VSub_Name '$packages_list') (EscapedLiteralPart token:<Lit_EscapedChar '\\$'>) 
                                                    ('/ { print ') (EscapedLiteralPart token:<Lit_EscapedChar '\\$'>) ('1 }')
                                                  )
                                                } 
                                                {
                                                  (DQ 
                                                    (BracedVarSub
                                                      token: <VSub_Name catalog_files>
                                                      bracket_op: (WholeArray op_id:Lit_At)
                                                      spids: [869 874]
                                                    )
                                                  )
                                                }
                                              )
                                            ]
                                          )
                                        left_token: <Left_CommandSub '$('>
                                        spids: [854 876]
                                      )
                                    }
                                  spids: [853]
                                )
                              ]
                              spids: [853]
                            )
                            (Assignment
                              keyword: Assign_None
                              pairs: [
                                (assign_pair
                                  lhs: (LhsName name:COMPREPLY)
                                  op: Equal
                                  rhs: 
                                    {
                                      (ArrayLiteralPart
                                        words: [
                                          {
                                            (CommandSubPart
                                              command_list: 
                                                (CommandList
                                                  children: [
                                                    (C {(compgen)} {(-W)} 
                                                      {(DQ (${ VSub_Name packages_list))} {(--)} {($ VSub_Name '$cur')}
                                                    )
                                                  ]
                                                )
                                              left_token: <Left_CommandSub '$('>
                                              spids: [882 896]
                                            )
                                          }
                                        ]
                                      )
                                    }
                                  spids: [879]
                                )
                              ]
                              spids: [879]
                            )
                          ]
                          spids: [807 826]
                        )
                      ]
                      spids: [16777215 901]
                    )
                    (ControlFlow token:<ControlFlow_Return return> arg_word:{(0)})
                  ]
                  spids: [16777215 641]
                )
              ]
              spids: [16777215 909]
            )
            (Assignment
              keyword: Assign_Local
              pairs: [
                (assign_pair
                  lhs: (LhsName name:commands)
                  op: Equal
                  rhs: 
                    {
                      (DQ 
                        (
'-i --install -u --upgrade -r --remove -d --download -U --catalog -a --available --describe -c --compare -C --compare-diff -A --compare-avail -e --email -t --temp -x --exclude -W --workdir -P --pkgdir -R --rootpath --config -y --yes -f --force -n --nomod -N --nodeps -D --debug --trace -h --help -v --version -V --syscheck -l --list -L --listfile -F --findfile --deptree --extract -s --stream -o --output -T --target --single -p --param --parse --cleanup --catinfo'
                        )
                      )
                    }
                  spids: [915]
                )
              ]
              spids: [913]
            )
            (Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (LhsName name:COMPREPLY)
                  op: Equal
                  rhs: 
                    {
                      (ArrayLiteralPart
                        words: [
                          {
                            (CommandSubPart
                              command_list: 
                                (CommandList
                                  children: [
                                    (C {(compgen)} {(-W)} {(DQ (${ VSub_Name commands))} {(--)} 
                                      {($ VSub_Name '$cur')}
                                    )
                                  ]
                                )
                              left_token: <Left_CommandSub '$('>
                              spids: [924 938]
                            )
                          }
                        ]
                      )
                    }
                  spids: [921]
                )
              ]
              spids: [921]
            )
            (ControlFlow token:<ControlFlow_Return return> arg_word:{(0)})
          ]
          spids: [83]
        )
      spids: [79 82]
    )
    (C {(complete)} {(-F)} {(_pkgutil)} {(pkgutil)})
  ]
)