(command.AndOr ops: [Op_DAmp] children: [ (command.FuncDef name: _pdftotext body: (command.BraceGroup children: [ (command.Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:cur spids:[13]) op: Equal spids: [13] ) (assign_pair lhs: (lhs_expr.LhsName name:prev spids:[15]) op: Equal spids: [15] ) (assign_pair lhs: (lhs_expr.LhsName name:words spids:[17]) op: Equal spids: [17] ) (assign_pair lhs: (lhs_expr.LhsName name:cword spids:[19]) op: Equal spids: [19] ) ] spids: [11] ) (command.AndOr ops: [Op_DPipe] children: [ (C {(_init_completion)}) (command.ControlFlow token:<ControlFlow_Return return>) ] ) (command.Case to_match: {($ VSub_DollarName '$prev')} arms: [ (case_arm pat_list: [ {(-h)} {(-help)} {(--help)} {(-) (SQ <'?'>)} {(-f)} {(-l)} {(-r)} {(-x)} {(-y)} {(-W)} {(-H)} {(-fixed)} {(-opw)} {(-upw)} ] action: [(command.ControlFlow token:<ControlFlow_Return return>)] spids: [37 67 73 16777215] ) (case_arm pat_list: [{(-enc)}] action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:COMPREPLY spids:[80]) op: Equal rhs: { (word_part.ArrayLiteralPart words: [ { (word_part.CommandSubPart command_list: (command.CommandList children: [ (C {(compgen)} {(-W)} { (SQ <'$( "$1" -listenc 2>/dev/null |\n'> <' sed -e 1d )'> ) } {(--)} {(DQ ($ VSub_DollarName '$cur'))} ) ] ) left_token: <Left_CommandSub '$('> spids: [83 100] ) } ] ) } spids: [80] ) ] spids: [80] ) (command.ControlFlow token:<ControlFlow_Return return>) ] spids: [76 77 108 16777215] ) (case_arm pat_list: [{(-eol)}] action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:COMPREPLY spids:[115]) op: Equal rhs: { (word_part.ArrayLiteralPart words: [ { (word_part.CommandSubPart command_list: (command.CommandList children: [ (C {(compgen)} {(-W)} {(DQ ('unix dos mac'))} {(--)} {(DQ ($ VSub_DollarName '$cur'))} ) ] ) left_token: <Left_CommandSub '$('> spids: [118 134] ) } ] ) } spids: [115] ) ] spids: [115] ) (command.ControlFlow token:<ControlFlow_Return return>) ] spids: [111 112 142 16777215] ) ] spids: [30 34 145] ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.DBracket expr: (bool_expr.LogicalAnd left: (bool_expr.BoolBinary op_id: BoolBinary_GlobDEqual left: {($ VSub_DollarName '$cur')} right: {(-) (Lit_Other '*')} ) right: (bool_expr.BoolBinary op_id: BoolBinary_GlobNEqual left: { (word_part.BracedVarSub token: <VSub_Name prev> suffix_op: (suffix_op.StringUnary op_id:VOp1_DComma arg_word:{}) spids: [162 165] ) } right: {(Lit_Other '*') (.pdf)} ) ) ) terminator: <Op_Semi ';'> ) ] action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:COMPREPLY spids:[178]) op: Equal rhs: { (word_part.ArrayLiteralPart words: [ { (word_part.CommandSubPart command_list: (command.CommandList children: [ (C {(compgen)} {(-W)} {(SQ <'$( _parse_help "$1" )'>)} {(--)} {(DQ ($ VSub_DollarName '$cur'))} ) ] ) left_token: <Left_CommandSub '$('> spids: [181 197] ) } ] ) } spids: [178] ) ] spids: [178] ) (command.ControlFlow token:<ControlFlow_Return return>) ] spids: [16777215 175] ) ] spids: [16777215 205] ) (command.Case to_match: { (word_part.BracedVarSub token: <VSub_Name prev> suffix_op: (suffix_op.StringUnary op_id:VOp1_DComma arg_word:{}) spids: [211 214] ) } arms: [ (case_arm pat_list: [{(-)} {(Lit_Other '*') (.txt)}] spids: [219 223 225 16777215] ) (case_arm pat_list: [{(Lit_Other '*') (.pdf)}] action: [ (command.Sentence child: (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:COMPREPLY spids:[232]) op: Equal rhs: { (word_part.ArrayLiteralPart words: [ { (word_part.CommandSubPart command_list: (command.CommandList children: [ (C {(compgen)} {(-W)} {(SQ <->)} {(--)} {(DQ ($ VSub_DollarName '$cur'))} ) ] ) left_token: <Left_CommandSub '$('> spids: [235 251] ) } ] ) } spids: [232] ) ] spids: [232] ) terminator: <Op_Semi ';'> ) (C {(_filedir)} {(txt)}) ] spids: [228 230 261 16777215] ) (case_arm pat_list: [{(Lit_Other '*')}] action: [(C {(_filedir)} {(pdf)})] spids: [264 265 271 16777215] ) ] spids: [209 216 274] ) ] spids: [8] ) spids: [4 7] ) (C {(complete)} {(-F)} {(_pdftotext)} {(pdftotext)}) ] )