(command.AndOr ops: [Op_DAmp] children: [ (command.FuncDef name: _gpg2 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: [{(--homedir)}] action: [ (C {(_filedir)} {(-d)}) (command.ControlFlow token: <ControlFlow_Return return> arg_word: {(0)} ) ] spids: [37 38 51 16777215] ) (case_arm pat_list: [{(-s)} {(--sign)} {(--clearsign)} {(--options)} {(--decrypt)}] action: [ (C {(_filedir)}) (command.ControlFlow token: <ControlFlow_Return return> arg_word: {(0)} ) ] spids: [54 63 74 16777215] ) (case_arm pat_list: [ {(--export)} {(--sign-key)} {(--lsign-key)} {(--nrsign-key)} {(--nrlsign-key)} {(--edit-key)} ] action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:COMPREPLY spids:[95]) op: Equal rhs: { (word_part.ArrayLiteralPart words: [ { (word_part.CommandSubPart command_list: (command.CommandList children: [ (C {(compgen)} {(-W)} { (DQ (word_part.CommandSubPart command_list: (command.CommandList children: [ (command.Pipeline children: [ (command.SimpleCommand words: [ {($ VSub_Number '$1')} {(--list-keys)} ] redirects: [ (redir.Redir op: <Redir_Great '2>'> fd: 2 arg_word: {(/dev/null)} ) ] ) (C {(sed)} {(-ne)} { (SQ < 's@^pub.*/\\([^ ]*\\).*$@\\1@p' > ) } {(-ne)} {(SQ <'s@^.*\\(<\\([^>]*\\)>\\).*$@\\2@p'>)} ) ] negated: F ) ] ) left_token: <Left_CommandSub '$('> spids: [105 134] ) ) } {(--)} {(DQ ($ VSub_DollarName '$cur'))} ) ] ) left_token: <Left_CommandSub '$('> spids: [98 143] ) } ] ) } spids: [95] ) ] spids: [95] ) (command.ControlFlow token: <ControlFlow_Return return> arg_word: {(0)} ) ] spids: [77 88 153 16777215] ) (case_arm pat_list: [{(-r)} {(--recipient)}] action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:COMPREPLY spids:[162]) op: Equal rhs: { (word_part.ArrayLiteralPart words: [ { (word_part.CommandSubPart command_list: (command.CommandList children: [ (C {(compgen)} {(-W)} { (DQ (word_part.CommandSubPart command_list: (command.CommandList children: [ (command.Pipeline children: [ (command.SimpleCommand words: [ {($ VSub_Number '$1')} {(--list-keys)} ] redirects: [ (redir.Redir op: <Redir_Great '2>'> fd: 2 arg_word: {(/dev/null)} ) ] ) (C {(sed)} {(-ne)} { (SQ <'s@^.*<\\([^>]*\\)>.*$@\\1@p'>) } ) ] negated: F ) ] ) left_token: <Left_CommandSub '$('> spids: [172 192] ) ) } {(--)} {(DQ ($ VSub_DollarName '$cur'))} ) ] ) left_token: <Left_CommandSub '$('> spids: [165 201] ) } ] ) } spids: [162] ) ] spids: [162] ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.DBracket expr: (bool_expr.BoolUnary op_id: BoolUnary_e child: {(Lit_TildeLike '~') (/.gnupg/gpg.conf)} ) ) terminator: <Op_Semi ';'> ) ] action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:COMPREPLY spids:[221]) op: PlusEqual rhs: { (word_part.ArrayLiteralPart words: [ { (word_part.CommandSubPart command_list: (command.CommandList children: [ (C {(compgen)} {(-W)} { (DQ (word_part.CommandSubPart command_list: (command.CommandList children: [ (C {(sed)} {(-ne)} { (SQ < 's@^[ \\t]*group[ \\t][ \\t]*\\([^=]*\\).*$@\\1@p' > ) } {(word_part.TildeSubPart token:<Lit_TildeLike '~'>) (/.gnupg/gpg.conf)} ) ] ) left_token: <Left_CommandSub '$('> spids: [231 247] ) ) } {(--)} {(DQ ($ VSub_DollarName '$cur'))} ) ] ) left_token: <Left_CommandSub '$('> spids: [224 256] ) } ] ) } spids: [221] ) ] spids: [221] ) ] spids: [16777215 218] ) ] spids: [16777215 261] ) (command.ControlFlow token: <ControlFlow_Return return> arg_word: {(0)} ) ] spids: [156 159 269 16777215] ) ] spids: [30 34 272] ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.DBracket expr: (bool_expr.BoolBinary op_id: BoolBinary_GlobDEqual left: {(DQ ($ VSub_DollarName '$cur'))} right: {(-) (Lit_Other '*')} ) ) terminator: <Op_Semi ';'> ) ] action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:COMPREPLY spids:[295]) op: Equal rhs: { (word_part.ArrayLiteralPart words: [ { (word_part.CommandSubPart command_list: (command.CommandList children: [ (C {(compgen)} {(-W)} {(SQ <'$($1 --dump-options)'>)} {(--)} {(DQ ($ VSub_DollarName '$cur'))} ) ] ) left_token: <Left_CommandSub '$('> spids: [298 314] ) } ] ) } spids: [295] ) ] spids: [295] ) ] spids: [16777215 292] ) ] spids: [16777215 319] ) ] spids: [8] ) spids: [4 7] ) (C {(complete)} {(-F)} {(_gpg2)} {(-o)} {(default)} {(gpg2)}) ] )