(command.AndOr ops: [Id.Op_DAmp] children: [ (command.ShFunction name: _gphoto2 body: (command.BraceGroup children: [ (C {(local)} {(cur)} {(prev)} {(words)} {(cword)} {(split)}) (command.AndOr ops: [Id.Op_DPipe] children: [ (C {(_init_completion)} {(-s)} {(-n)} {(Id.Lit_Other ':')}) (command.ControlFlow token: (Token id:Id.ControlFlow_Return val:return span_id:34) ) ] ) (command.Case to_match: {($ Id.VSub_DollarName '$prev')} arms: [ (case_arm pat_list: [{(--debug-logfile)}] action: [ (C {(_filedir)}) (command.ControlFlow token: (Token id:Id.ControlFlow_Return val:return span_id:52) arg_word: {(0)} ) ] spids: [45 46 57 -1] ) (case_arm pat_list: [{(--hook-script)}] action: [ (C {(_filedir)}) (command.ControlFlow token: (Token id:Id.ControlFlow_Return val:return span_id:67) arg_word: {(0)} ) ] spids: [60 61 72 -1] ) (case_arm pat_list: [{(--filename)}] action: [ (C {(_filedir)}) (command.ControlFlow token: (Token id:Id.ControlFlow_Return val:return span_id:82) arg_word: {(0)} ) ] spids: [75 76 87 -1] ) (case_arm pat_list: [{(-u)} {(--upload-file)}] action: [ (C {(_filedir)}) (command.ControlFlow token: (Token id:Id.ControlFlow_Return val:return span_id:99) arg_word: {(0)} ) ] spids: [90 93 104 -1] ) (case_arm pat_list: [{(--port)}] action: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:COMPREPLY) op: assign_op.Equal rhs: { (sh_array_literal left: (Token id:Id.Op_LParen val:'(' span_id:112) words: [ { (command_sub left_token: (Token id:Id.Left_DollarParen val:'$(' span_id:114) command_list: (command.CommandList children: [ (C {(compgen)} {(-W)} { (DQ (command_sub left_token: (Token id: Id.Left_DollarParen val: '$(' span_id: 120 ) command_list: (command.CommandList children: [ (command.Pipeline children: [ (command.Simple words: [ {($ Id.VSub_Number '$1')} {(--list-ports)} ] redirects: [ (redir.Redir op: (Token id: Id.Redir_Great val: '2>' span_id: 126 ) fd: 2 arg_word: {(/dev/null)} ) ] ) (C {(awk)} { (SQ (Token id: Id.Lit_Chars val: 'NR>3 { print $1 }' span_id: 136 ) ) } ) ] negated: F ) ] ) ) ) } {(--)} {(DQ ($ Id.VSub_DollarName '$cur'))} ) ] ) ) } ] ) } spids: [111] ) ] ) (C {(__ltrim_colon_completions)} {(DQ ($ Id.VSub_DollarName '$cur'))}) (command.ControlFlow token: (Token id:Id.ControlFlow_Return val:return span_id:159) arg_word: {(0)} ) ] spids: [107 108 164 -1] ) (case_arm pat_list: [{(--camera)}] action: [ (C {(local)} {(Id.Lit_VarLike 'IFS=') (single_quoted left: (Token id:Id.Left_SingleQuoteC val:"$'" span_id:174) tokens: [(Token id:Id.Char_OneChar val:'\\n' span_id:175)] ) } ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:COMPREPLY) op: assign_op.Equal rhs: { (sh_array_literal left: (Token id:Id.Op_LParen val:'(' span_id:180) words: [ { (command_sub left_token: (Token id:Id.Left_DollarParen val:'$(' span_id:182) command_list: (command.CommandList children: [ (C {(compgen)} {(-W)} { (DQ (command_sub left_token: (Token id: Id.Left_DollarParen val: '$(' span_id: 188 ) command_list: (command.CommandList children: [ (command.Pipeline children: [ (command.Simple words: [ {($ Id.VSub_Number '$1')} {(--list-cameras)} ] redirects: [ (redir.Redir op: (Token id: Id.Redir_Great val: '2>' span_id: 194 ) fd: 2 arg_word: {(/dev/null)} ) ] ) (C {(awk)} {(-F) (SQ (Token id: Id.Lit_Chars val: '"' span_id: 205 ) ) } {(SQ (Token id:Id.Lit_Chars val:'NR>2 { print $2 }' span_id:209))} ) ] negated: F ) ] ) ) ) } {(--)} {(DQ ($ Id.VSub_DollarName '$cur'))} ) ] ) ) } ] ) } spids: [179] ) ] ) (command.ControlFlow token: (Token id:Id.ControlFlow_Return val:return span_id:225) arg_word: {(0)} ) ] spids: [167 168 230 -1] ) (case_arm pat_list: [ {(--get-config)} {(--set-config)} {(--set-config-index)} {(--set-config-value)} ] action: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:COMPREPLY) op: assign_op.Equal rhs: { (sh_array_literal left: (Token id:Id.Op_LParen val:'(' span_id:244) words: [ { (command_sub left_token: (Token id:Id.Left_DollarParen val:'$(' span_id:246) command_list: (command.CommandList children: [ (C {(compgen)} {(-W)} { (DQ (command_sub left_token: (Token id: Id.Left_DollarParen val: '$(' span_id: 252 ) command_list: (command.CommandList children: [ (command.Simple words: [ {($ Id.VSub_Number '$1')} {(--list-config)} ] redirects: [ (redir.Redir op: (Token id: Id.Redir_Great val: '2>' span_id: 258 ) fd: 2 arg_word: {(/dev/null)} ) ] ) ] ) ) ) } {(--)} {(DQ ($ Id.VSub_DollarName '$cur'))} ) ] ) ) } ] ) } spids: [243] ) ] ) (command.ControlFlow token: (Token id:Id.ControlFlow_Return val:return span_id:276) arg_word: {(0)} ) ] spids: [233 240 281 -1] ) ] ) (command.AndOr ops: [Id.Op_DAmp] children: [ (C {($ Id.VSub_DollarName '$split')}) (command.ControlFlow token: (Token id:Id.ControlFlow_Return val:return span_id:292) ) ] ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.DBracket expr: (bool_expr.Binary op_id: Id.BoolBinary_GlobDEqual left: {(DQ ($ Id.VSub_DollarName '$cur'))} right: {(-) (Id.Lit_Other '*')} ) ) terminator: (Token id:Id.Op_Semi val:';' span_id:310) ) ] action: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:COMPREPLY) op: assign_op.Equal rhs: { (sh_array_literal left: (Token id:Id.Op_LParen val:'(' span_id:316) words: [ { (command_sub left_token: (Token id:Id.Left_DollarParen val:'$(' span_id:318) command_list: (command.CommandList children: [ (C {(compgen)} {(-W)} { (SQ (Token id: Id.Lit_Chars val: '$( _parse_help "$1" )' span_id: 325 ) ) } {(--)} {(DQ ($ Id.VSub_DollarName '$cur'))} ) ] ) ) } ] ) } spids: [315] ) ] ) (command.AndOr ops: [Id.Op_DAmp] children: [ (command.DBracket expr: (bool_expr.Binary op_id: Id.BoolBinary_GlobDEqual left: {($ Id.VSub_DollarName '$COMPREPLY')} right: {(Id.Lit_Other '*') (Id.BoolBinary_GlobEqual '=')} ) ) (C {(compopt)} {(-o)} {(nospace)}) ] ) (command.ControlFlow token: (Token id:Id.ControlFlow_Return val:return span_id:359) arg_word: {(0)} ) ] spids: [296 312] ) ] ) ] ) ) (C {(complete)} {(-F)} {(_gphoto2)} {(gphoto2)}) ] )