(command.CommandList children: [ (C {(.)} {($ VSub_DollarName '$_Dbg_main')}) (command.AndOr ops: [Op_DAmp] children: [ (command.DParen child: (arith_expr.ArithBinary op_id: Arith_Great left: (arith_expr.ArithVarRef token:<Lit_ArithVarLike OPTLIND>) right: (arith_expr.ArithWord w:{(Lit_Digits 0)}) ) ) (C {(shift)} { (DQ (word_part.ArithSubPart anode: (arith_expr.ArithBinary op_id: Arith_Minus left: (arith_expr.ArithVarRef token:<Lit_ArithVarLike OPTLIND>) right: (arith_expr.ArithWord w:{(Lit_Digits 1)}) ) ) ) } ) ] ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.AndOr ops: [Op_DAmp] children: [ (command.DParen child: (arith_expr.ArithBinary op_id: Arith_DEqual left: (arith_expr.ArithWord w:{($ VSub_Pound '$#')}) right: (arith_expr.ArithWord w:{(Lit_Digits 0)}) ) ) (command.DBracket expr: (bool_expr.BoolUnary op_id: BoolUnary_z child: {($ VSub_DollarName '$_Dbg_EXECUTION_STRING')} ) ) ] ) terminator: <Op_Semi ';'> ) ] action: [ (command.SimpleCommand words: [ {(echo)} { (DQ (${ VSub_Name _Dbg_pname) (': need to give a script to debug or use the -c option.') ) } ] redirects: [(redir.Redir op:<Redir_GreatAnd '>&'> fd:16777215 arg_word:{(2)})] ) (command.ControlFlow token:<ControlFlow_Exit exit> arg_word:{(1)}) ] ) ] ) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:_Dbg_script_file) op: Equal rhs: {(DQ ($ VSub_Number '$1'))} ) ] ) (C {(shift)}) (command.AndOr ops: [Op_DAmp] children: [ (command.DBracket expr: (bool_expr.BoolBinary op_id: BoolBinary_GlobDEqual left: {($ VSub_Number '$1')} right: {(SQ <-->)} ) ) (C {(shift)}) ] ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.AndOr ops: [Op_DAmp] children: [ (command.DBracket expr: (bool_expr.LogicalNot child: (bool_expr.BoolUnary op_id: BoolUnary_d child: {($ VSub_DollarName '$_Dbg_tmpdir')} ) ) ) (command.DBracket expr: (bool_expr.LogicalNot child: (bool_expr.BoolUnary op_id: BoolUnary_w child: {($ VSub_DollarName '$_Dbg_tmpdir')} ) ) ) ] ) terminator: <Op_Semi ';'> ) ] action: [ (command.SimpleCommand words: [ {(echo)} { (DQ (${ VSub_Name _Dbg_pname) (': cannot write to temp directory ') ($ VSub_DollarName '$_Dbg_tmpdir') (.) ) } ] redirects: [(redir.Redir op:<Redir_GreatAnd '>&'> fd:16777215 arg_word:{(2)})] ) (command.SimpleCommand words: [{(echo)} {(DQ (${ VSub_Name _Dbg_pname) (': Use -T try directory location.'))}] redirects: [(redir.Redir op:<Redir_GreatAnd '>&'> fd:16777215 arg_word:{(2)})] ) (command.ControlFlow token:<ControlFlow_Exit exit> arg_word:{(1)}) ] ) ] ) (command.Assignment keyword: Assign_None pairs: [(assign_pair lhs:(lhs_expr.LhsName name:_Dbg_script) op:Equal rhs:{(1)})] ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.DBracket expr: (bool_expr.BoolUnary op_id: BoolUnary_n child: {($ VSub_DollarName '$_Dbg_EXECUTION_STRING')} ) ) terminator: <Op_Semi ';'> ) ] action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:_Dbg_script_file) op: Equal rhs: { (word_part.CommandSubPart command_list: (command.CommandList children:[(C {(_Dbg_tempname)} {(cmd)})]) left_token: <Left_CommandSub '$('> ) } ) ] ) (command.SimpleCommand words: [{(echo)} {(DQ ($ VSub_DollarName '$_Dbg_EXECUTION_STRING'))}] redirects: [ (redir.Redir op: <Redir_Great '>'> fd: 16777215 arg_word: {($ VSub_DollarName '$_Dbg_script_file')} ) ] ) ] ) ] ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.DBracket expr: (bool_expr.LogicalNot child: (bool_expr.BoolUnary op_id: BoolUnary_r child: {(DQ ($ VSub_DollarName '$_Dbg_script_file'))} ) ) ) terminator: <Op_Semi ';'> ) ] action: [ (command.SimpleCommand words: [ {(echo)} { (DQ (${ VSub_Name _Dbg_pname) (': cannot read program to debug: ') (${ VSub_Name _Dbg_script_file) (.) ) } ] redirects: [(redir.Redir op:<Redir_GreatAnd '>&'> fd:16777215 arg_word:{(2)})] ) (command.ControlFlow token:<ControlFlow_Exit exit> arg_word:{(1)}) ] ) ] ) (command.Assignment keyword: Assign_Typeset flags: [-r] pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:_Dbg_Dbg_script_file) op: Equal rhs: { (word_part.CommandSubPart command_list: (command.CommandList children: [(C {(_Dbg_expand_filename)} {($ VSub_DollarName '$_Dbg_script_file')})] ) left_token: <Left_CommandSub '$('> ) } ) ] ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.DParen child: (arith_expr.ArithVarRef token:<Lit_ArithVarLike _Dbg_set_linetrace>) ) terminator: <Op_Semi ';'> ) ] action: [ (C {(_Dbg_write_journal_eval)} {(DQ ('_Dbg_step_ignore=-1'))}) (command.Assignment keyword: Assign_None pairs: [(assign_pair lhs:(lhs_expr.LhsName name:_Dbg_QUIT_ON_QUIT) op:Equal rhs:{(1)})] ) ] ) ] else_action: [(C {(_Dbg_write_journal_eval)} {(DQ ('_Dbg_step_ignore=3'))})] ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.SimpleCommand words: [{(enable)} {(-a)} {(set0)}] redirects: [(redir.Redir op:<Redir_Great '2>'> fd:2 arg_word:{(/dev/null)})] ) terminator: <Op_Semi ';'> ) ] action: [(C {(set0)} {(DQ ($ VSub_DollarName '$_Dbg_script_file'))})] ) ] ) (command.AndOr ops: [Op_DAmp] children: [ (command.DParen child: (arith_expr.ArithVarRef token:<Lit_ArithVarLike _Dbg_set_read_completion>) ) (C {(_Dbg_complete_level_0_init)}) ] ) (C {(_Dbg_init_default_traps)}) ] )