(command.CommandList children: [ (command.Simple blame_tok: <Id.Lit_Colon ':'> more_env: [] words: [{<Id.Lit_Colon ':'>} {<generate>} {<sig>} {<features>}] redirects: [] do_fork: T ) (command.Case case_kw: <Id.KW_Case case> to_match: (case_arg.Word w:{($ Id.VSub_Pound '#')}) arms_start: <Id.KW_In in> arms: [ (CaseArm left: <0> pattern: (pat.Words words:[{<0>}]) middle: <Id.Right_CasePat _> action: [] right: <Id.Op_DSemi _> ) (CaseArm left: <Id.Lit_Star '*'> pattern: (pat.Words words:[{<Id.Lit_Star '*'>}]) middle: <Id.Right_CasePat _> action: [ (command.Simple blame_tok: <eval> more_env: [] words: [{<eval>} {($ Id.VSub_Number 1)}] redirects: [] do_fork: T ) (command.Simple blame_tok: <shift> more_env: [] words: [{<shift>}] redirects: [] do_fork: T ) ] right: <Id.Op_DSemi _> ) ] arms_end: <Id.KW_Esac esac> redirects: [] ) (command.Simple blame_tok: <echo> more_env: [] words: [{<echo>} {(DQ <'#include <signal.h>\n'> <'int xxx;'>)}] redirects: [ (Redir op: <Id.Redir_Great '>'> loc: (redir_loc.Fd fd:1) arg: {($ Id.VSub_DollarName tmp) <.c>} ) ] do_fork: T ) (command.Simple blame_tok: <Id.VSub_DollarName '$cc'> more_env: [] words: [{($ Id.VSub_DollarName cc)} {<-c>} {($ Id.VSub_DollarName tmp) <.c>}] redirects: [ (Redir op:<Id.Redir_Great '>'> loc:(redir_loc.Fd fd:1) arg:{<'/dev/null'>}) (Redir op: <Id.Redir_Great '2>'> loc: (redir_loc.Fd fd:2) arg: {($ Id.VSub_DollarName tmp) <.e>} ) ] do_fork: T ) (command.Simple blame_tok: <echo> more_env: [] words: [ {<echo>} { (DQ <'#pragma prototyped\n'> <'#define sig_info\t_sig_info_\n'> <'\n'> <'#if defined(__STDPP__directive) && defined(__STDPP__hide)\n'> <'__STDPP__directive pragma pp:hide kill killpg\n'> <'#else\n'> <'#define kill\t______kill\n'> <'#define killpg\t______killpg\n'> <'#endif\n'> <'#include <signal.h>\n'> <'#if defined(__STDPP__directive) && defined(__STDPP__hide)\n'> <'__STDPP__directive pragma pp:nohide kill killpg\n'> <'#else\n'> <'#undef\tkill\n'> <'#undef\tkillpg\n'> <'#endif\n'> <'#ifndef sigmask\n'> <'#define sigmask(s)\t(1<<((s)-1))\n'> <'#endif'> ) } ] redirects: [] do_fork: T ) (command.Simple blame_tok: <echo> more_env: [] words: [ {<echo>} { (DQ <'#include <signal.h>\n'> <'#ifdef TYPE\n'> <'#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus)\n'> <'typedef TYPE (*Sig_handler_t)(ARG);\n'> <'#else\n'> <'typedef TYPE (*Sig_handler_t)();\n'> <'#endif\n'> <'#endif\n'> <'Sig_handler_t f()\n'> <'{\n'> <'\tSig_handler_t\thandler;\n'> <'\thandler = signal(1, SIG_IGN);\n'> <'\treturn(handler);\n'> <'}'> ) } ] redirects: [ (Redir op: <Id.Redir_Great '>'> loc: (redir_loc.Fd fd:1) arg: {($ Id.VSub_DollarName tmp) <.c>} ) ] do_fork: T ) (command.If if_kw: <Id.KW_If if> arms: [ (IfArm keyword: <Id.KW_If if> cond: (condition.Shell commands: [ (command.Simple blame_tok: <Id.VSub_DollarName '$cc'> more_env: [] words: [{($ Id.VSub_DollarName cc)} {<-c>} {($ Id.VSub_DollarName tmp) <.c>}] redirects: [ (Redir op: <Id.Redir_Great '>'> loc: (redir_loc.Fd fd:1) arg: {<'/dev/null'>} ) ] do_fork: T ) ] ) then_kw: <Id.KW_Then then> action: [ (command.Simple blame_tok: <Id.Lit_Colon ':'> more_env: [] words: [{<Id.Lit_Colon ':'>}] redirects: [] do_fork: T ) ] spids: [171 183] ) ] else_kw: <Id.KW_Else else> else_action: [ (command.ShAssignment left: <Id.Lit_VarLike 'e='> pairs: [ (AssignPair left: <Id.Lit_VarLike 'e='> lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'e='> name:e) op: assign_op.Equal rhs: { (CommandSub left_token: <Id.Left_Backtick '`'> child: (command.Simple blame_tok: <wc> more_env: [] words: [{<wc>} {<-l>} {($ Id.VSub_DollarName tmp) <.e>}] redirects: [] do_fork: T ) right: <Id.Backtick_Right '`'> ) } ) ] redirects: [] ) (command.ShAssignment left: <Id.Lit_VarLike 'i1='> pairs: [ (AssignPair left: <Id.Lit_VarLike 'i1='> lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'i1='> name:i1) op: assign_op.Equal rhs: (rhs_word__Empty) ) (AssignPair left: <Id.Lit_VarLike 'j1='> lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'j1='> name:j1) op: assign_op.Equal rhs: (rhs_word__Empty) ) ] redirects: [] ) (command.ForEach keyword: <Id.KW_For for> iter_names: [i] iterable: (for_iter.Words words:[{<void>} {<int>}]) body: (command.DoGroup left: <Id.KW_Do do> children: [ (command.ForEach keyword: <Id.KW_For for> iter_names: [j] iterable: (for_iter.Words words: [{<int> <Id.Lit_Comma ','> <Id.Lit_TDot ...>} {<Id.Lit_TDot ...>} {<int>}] ) body: (command.DoGroup left: <Id.KW_Do do> children: [ (command.AndOr children: [ (command.Simple blame_tok: <Id.VSub_DollarName '$cc'> more_env: [] words: [ {($ Id.VSub_DollarName cc)} {<-c>} {<-DTYPE> <Id.Lit_Equals '='> ($ Id.VSub_DollarName i)} {<-DARG> <Id.Lit_Equals '='> ($ Id.VSub_DollarName j)} {($ Id.VSub_DollarName tmp) <.c>} ] redirects: [ (Redir op: <Id.Redir_Great '>'> loc: (redir_loc.Fd fd:1) arg: {<'/dev/null'>} ) (Redir op: <Id.Redir_Great '2>'> loc: (redir_loc.Fd fd:2) arg: {($ Id.VSub_DollarName tmp) <.e>} ) ] do_fork: T ) (command.ControlFlow keyword: <Id.ControlFlow_Continue continue> ) ] ops: [<Id.Op_DPipe _>] ) (command.Case case_kw: <Id.KW_Case case> to_match: (case_arg.Word w: { (CommandSub left_token: <Id.Left_Backtick '`'> child: (command.Simple blame_tok: <wc> more_env: [] words: [{<wc>} {<-l>} {($ Id.VSub_DollarName tmp) <.e>}] redirects: [] do_fork: T ) right: <Id.Backtick_Right '`'> ) } ) arms_start: <Id.KW_In in> arms: [ (CaseArm left: <Id.VSub_DollarName '$e'> pattern: (pat.Words words:[{($ Id.VSub_DollarName e)}]) middle: <Id.Right_CasePat _> action: [ (command.Sentence child: (command.ShAssignment left: <Id.Lit_VarLike 'i1='> pairs: [ (AssignPair left: <Id.Lit_VarLike 'i1='> lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'i1='> name:i1) op: assign_op.Equal rhs: (rhs_word__Empty) ) (AssignPair left: <Id.Lit_VarLike 'j1='> lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'j1='> name:j1) op: assign_op.Equal rhs: (rhs_word__Empty) ) ] redirects: [] ) terminator: <Id.Op_Semi _> ) (command.ControlFlow keyword: <Id.ControlFlow_Break break> arg_word: {<2>} ) ] right: <Id.Op_DSemi _> ) ] arms_end: <Id.KW_Esac esac> redirects: [] ) (command.Case case_kw: <Id.KW_Case case> to_match: (case_arg.Word w:{($ Id.VSub_DollarName i1)}) arms_start: <Id.KW_In in> arms: [ (CaseArm left: <Id.Left_DoubleQuote '"'> pattern: (pat.Words words:[{(DQ )}]) middle: <Id.Right_CasePat _> action: [ (command.ShAssignment left: <Id.Lit_VarLike 'i1='> pairs: [ (AssignPair left: <Id.Lit_VarLike 'i1='> lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'i1='> name:i1) op: assign_op.Equal rhs: {($ Id.VSub_DollarName i)} ) (AssignPair left: <Id.Lit_VarLike 'j1='> lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'j1='> name:j1) op: assign_op.Equal rhs: {($ Id.VSub_DollarName j)} ) ] redirects: [] ) ] right: <Id.Op_DSemi _> ) ] arms_end: <Id.KW_Esac esac> redirects: [] ) ] right: <Id.KW_Done done> ) redirects: [] ) ] right: <Id.KW_Done done> ) redirects: [] ) (command.Case case_kw: <Id.KW_Case case> to_match: (case_arg.Word w:{($ Id.VSub_DollarName i1)}) arms_start: <Id.KW_In in> arms: [ (CaseArm left: <Id.Lit_QMark '?'> pattern: (pat.Words words:[{<Id.Lit_QMark '?'> <Id.Lit_Star '*'>}]) middle: <Id.Right_CasePat _> action: [ (command.ShAssignment left: <Id.Lit_VarLike 'i='> pairs: [ (AssignPair left: <Id.Lit_VarLike 'i='> lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'i='> name:i) op: assign_op.Equal rhs: {($ Id.VSub_DollarName i1)} ) (AssignPair left: <Id.Lit_VarLike 'j='> lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'j='> name:j) op: assign_op.Equal rhs: {($ Id.VSub_DollarName j1)} ) ] redirects: [] ) ] right: <Id.Op_DSemi _> ) ] arms_end: <Id.KW_Esac esac> redirects: [] ) (command.Simple blame_tok: <echo> more_env: [] words: [ {<echo>} { (DQ <'typedef '> ($ Id.VSub_DollarName i) <' (*Sig_handler_t)('> ($ Id.VSub_DollarName j) <');'> ) } ] redirects: [] do_fork: T ) ] fi_kw: <Id.KW_Fi fi> redirects: [] ) (command.Simple blame_tok: <echo> more_env: [] words: [ {<echo>} { (SQ <'\n'> <'\n'> <'#define Handler_t\t\tSig_handler_t\n'> <'\n'> <'#define SIG_REG_PENDING\t\t(-1)\n'> <'#define SIG_REG_POP\t\t0\n'> <'#define SIG_REG_EXEC\t\t00001\n'> <'#define SIG_REG_PROC\t\t00002\n'> <'#define SIG_REG_TERM\t\t00004\n'> <'#define SIG_REG_ALL\t\t00777\n'> <'#define SIG_REG_SET\t\t01000\n'> <'\n'> <'typedef struct\n'> <'{\n'> <'\tchar**\t\tname;\n'> <'\tchar**\t\ttext;\n'> <'\tint\t\tsigmax;\n'> <'} Sig_info_t;\n'> <'\n'> <'extern int\t\tkill(pid_t, int);\n'> <'extern int\t\tkillpg(pid_t, int);\n'> <'\n'> <'#if _BLD_ast && defined(__EXPORT__)\n'> <'#define extern\t\textern __EXPORT__\n'> <'#endif\n'> <'#if !_BLD_ast && defined(__IMPORT__)\n'> <'#define extern\t\textern __IMPORT__\n'> <'#endif\n'> <'\n'> <'extern Sig_info_t\tsig_info;\n'> <'\n'> <'#undef\textern\n'> <'\n'> <'#if _lib_sigflag && _npt_sigflag\n'> <'extern int\t\tsigflag(int, int, int);\n'> <'#endif\n'> <'\n'> <'#if _BLD_ast && defined(__EXPORT__)\n'> <'#define extern\t\t__EXPORT__\n'> <'#endif\n'> <'\n'> <'#if !_lib_sigflag\n'> <'extern int\t\tsigflag(int, int, int);\n'> <'#endif\n'> <'extern int\t\tsigcritical(int);\n'> <'extern int\t\tsigunblock(int);\n'> <'\n'> <'#undef\textern'> ) } ] redirects: [] do_fork: T ) ] )