(CommandList children: [ (SimpleCommand words: [{(exec)}] redirects: [(Redir op_id:Redir_Great fd:2 arg_word:{(/dev/null)} spids:[48])] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:sys) op: Equal rhs: { (DQ (CommandSubPart command_list: (CommandList children: [ (Pipeline children: [ (C {(uname)} {(-s)}) (C {(tr)} {(SQ <'/:[A-Z]'>)} {(SQ <'..[a-z]'>)}) ] negated: F ) ] ) left_token: <Left_Backtick '`'> spids: [54 70] ) ) } spids: [52] ) ] spids: [52] ) (If arms: [ (if_arm cond: [ (C {(Lit_Other '[')} {(x) (DQ ($ VSub_Name '$sys'))} {(KW_Bang '!') (Lit_Other '=')} {(x)} {(Lit_Other ']')} ) ] action: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:unamer) op: Equal rhs: { (DQ (CommandSubPart command_list: (CommandList children: [ (Pipeline children: [ (C {(uname)} {(-r)}) (C {(tr)} {(/) (Lit_Other ':')} {(..)}) ] negated: F ) ] ) left_token: <Left_Backtick '`'> spids: [94 107] ) ) } spids: [92] ) ] spids: [92] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:unamem) op: Equal rhs: { (DQ (CommandSubPart command_list: (CommandList children: [ (Pipeline children: [ (C {(uname)} {(-m)}) (C {(tr)} {(/) (Lit_Other ':')} {(..)}) ] negated: F ) ] ) left_token: <Left_Backtick '`'> spids: [113 126] ) ) } spids: [111] ) ] spids: [111] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:unamev) op: Equal rhs: { (DQ (CommandSubPart command_list: (CommandList children: [ (Pipeline children: [ (C {(uname)} {(-v)}) (C {(tr)} {(/) (Lit_Other ':')} {(..)}) ] negated: F ) ] ) left_token: <Left_Backtick '`'> spids: [132 145] ) ) } spids: [130] ) ] spids: [130] ) (Case to_match: {(DQ ($ VSub_Name '$sys'))} arms: [ (case_arm pat_list: [{(bsd.os)} {(freebsd)} {(netbsd)} {(openbsd)}] action: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:oper) op: Equal rhs: {(DQ ($ VSub_Name '$sys') (-) ($ VSub_Name '$unamer'))} spids: [177] ) ] spids: [177] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:arch) op: Equal rhs: {(DQ ($ VSub_Name '$unamem'))} spids: [185] ) ] spids: [185] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:syst) op:Equal rhs:{(DQ )} spids:[191])] spids: [191] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:chip) op: Equal rhs: { (DQ (CommandSubPart command_list: (CommandList children: [(C {(sysctl)} {(-n)} {(hw.model)})] ) left_token: <Left_Backtick '`'> spids: [198 204] ) ) } spids: [196] ) ] spids: [196] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:kern) op:Equal rhs:{(DQ )} spids:[211])] spids: [211] ) ] spids: [159 166 216 16777215] ) (case_arm pat_list: [{(linux)}] action: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:oper) op: Equal rhs: {(DQ ($ VSub_Name '$sys') (-) ($ VSub_Name '$unamer'))} spids: [227] ) ] spids: [227] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:syst) op:Equal rhs:{(DQ )} spids:[235])] spids: [235] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:chip) op: Equal rhs: {(DQ ($ VSub_Name '$unamem'))} spids: [240] ) ] spids: [240] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:kern) op:Equal rhs:{(DQ )} spids:[246])] spids: [246] ) (Case to_match: {(DQ ($ VSub_Name '$chip'))} arms: [ (case_arm pat_list: [{(i386)} {(i486)} {(i586)} {(i686)}] action: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:arch) op: Equal rhs: {(DQ (i386))} spids: [270] ) ] spids: [270] ) ] spids: [260 267 276 16777215] ) (case_arm pat_list: [{(alpha)}] action: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:arch) op: Equal rhs: {(DQ (alpha))} spids: [283] ) ] spids: [283] ) ] spids: [279 280 289 16777215] ) ] spids: [251 257 292] ) ] spids: [219 220 295 16777215] ) (case_arm pat_list: [{(aix)}] action: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:oper) op: Equal rhs: { (DQ ($ VSub_Name '$sys') (-) ($ VSub_Name '$unamev') (-) ($ VSub_Name '$unamer') ) } spids: [306] ) ] spids: [306] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:arch) op: Equal rhs: { (DQ (CommandSubPart command_list: (CommandList children: [ (Pipeline children: [ (C {(arch)}) (C {(tr)} {(/) (Lit_Other ':')} {(..)}) ] negated: F ) ] ) left_token: <Left_Backtick '`'> spids: [318 329] ) ) } spids: [316] ) ] spids: [316] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:syst) op:Equal rhs:{(DQ )} spids:[333])] spids: [333] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:chip) op: Equal rhs: {(DQ ($ VSub_Name '$unamem'))} spids: [338] ) ] spids: [338] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:kern) op:Equal rhs:{(DQ )} spids:[344])] spids: [344] ) ] spids: [298 299 349 16777215] ) (case_arm pat_list: [{(sunos)}] action: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:oper) op: Equal rhs: { (DQ ($ VSub_Name '$sys') (-) ($ VSub_Name '$unamer') (-) ($ VSub_Name '$unamev') ) } spids: [356] ) ] spids: [356] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:arch) op: Equal rhs: { (DQ (CommandSubPart command_list: (CommandList children: [ (Pipeline children: [ (Subshell child: (AndOr ops: [Op_DPipe] children: [(C {(uname)} {(-p)}) (C {(mach)})] ) spids: [369 377] ) (C {(tr)} {(/) (Lit_Other ':')} {(..)}) ] negated: F ) ] ) left_token: <Left_Backtick '`'> spids: [368 387] ) ) } spids: [366] ) ] spids: [366] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:syst) op: Equal rhs: { (DQ (CommandSubPart command_list: (CommandList children: [ (Pipeline children: [ (C {(arch)}) (C {(tr)} {(/) (Lit_Other ':')} {(..)}) ] negated: F ) ] ) left_token: <Left_Backtick '`'> spids: [393 404] ) ) } spids: [391] ) ] spids: [391] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:chip) op: Equal rhs: {(DQ ($ VSub_Name '$unamem'))} spids: [408] ) ] spids: [408] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:kern) op: Equal rhs: { (DQ (CommandSubPart command_list: (CommandList children: [ (Pipeline children: [ (C {(arch)} {(-k)}) (C {(tr)} {(/) (Lit_Other ':')} {(..)}) ] negated: F ) ] ) left_token: <Left_Backtick '`'> spids: [419 432] ) ) } spids: [417] ) ] spids: [417] ) ] spids: [352 353 436 16777215] ) (case_arm pat_list: [{(unix_sv)}] action: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:oper) op: Equal rhs: { (DQ ($ VSub_Name '$sys') (-) ($ VSub_Name '$unamer') (-) ($ VSub_Name '$unamev') ) } spids: [443] ) ] spids: [443] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:arch) op: Equal rhs: { (DQ (CommandSubPart command_list: (CommandList children:[(C {(uname)} {(-m)})]) left_token: <Left_Backtick '`'> spids: [455 459] ) ) } spids: [453] ) ] spids: [453] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:syst) op:Equal rhs:{(DQ )} spids:[463])] spids: [463] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:chip) op: Equal rhs: {(DQ ($ VSub_Name '$unamem'))} spids: [468] ) ] spids: [468] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:kern) op:Equal rhs:{(DQ )} spids:[474])] spids: [474] ) ] spids: [439 440 479 16777215] ) (case_arm pat_list: [{(Lit_Other '*')}] action: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:oper) op: Equal rhs: { (DQ ($ VSub_Name '$sys') (-) ($ VSub_Name '$unamer') (-) ($ VSub_Name '$unamev') ) } spids: [486] ) ] spids: [486] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:arch) op: Equal rhs: { (DQ (CommandSubPart command_list: (CommandList children: [ (Pipeline children: [ (C {(arch)}) (C {(tr)} {(/) (Lit_Other ':')} {(..)}) ] negated: F ) ] ) left_token: <Left_Backtick '`'> spids: [498 509] ) ) } spids: [496] ) ] spids: [496] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:syst) op:Equal rhs:{(DQ )} spids:[513])] spids: [513] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:chip) op: Equal rhs: {(DQ ($ VSub_Name '$unamem'))} spids: [518] ) ] spids: [518] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:kern) op:Equal rhs:{(DQ )} spids:[524])] spids: [524] ) ] spids: [482 483 529 16777215] ) ] spids: [150 156 532] ) ] spids: [16777215 89] ) ] else_action: [ (C {(gcc)} {(-c)} {(trycpp.c)}) (C {(gcc)} {(-o)} {(trycpp)} {(trycpp.o)}) (Case to_match: { (CommandSubPart command_list: (CommandList children:[(C {(./trycpp)})]) left_token: <Left_Backtick '`'> spids: [555 557] ) } arms: [ (case_arm pat_list: [{(nextstep)}] action: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:oper) op: Equal rhs: { (DQ (nextstep-) (CommandSubPart command_list: (CommandList children: [ (Pipeline children: [ (C {(hostinfo)}) (C {(sed)} {(-n)} {(SQ <'s/^[ \t]*NeXT Mach \\([^:]*\\):.*$/\\1/p'>)} ) ] negated: F ) ] ) left_token: <Left_Backtick '`'> spids: [569 581] ) ) } spids: [566] ) ] spids: [566] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:arch) op: Equal rhs: { (DQ (CommandSubPart command_list: (CommandList children: [ (Pipeline children: [ (C {(hostinfo)}) (C {(sed)} {(-n)} {(SQ <'s/^Processor type: \\(.*\\) (.*)$/\\1/p'>)} ) (C {(tr)} {(/) (Lit_Other ':')} {(..)}) ] negated: F ) ] ) left_token: <Left_Backtick '`'> spids: [587 608] ) ) } spids: [585] ) ] spids: [585] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:syst) op:Equal rhs:{(DQ )} spids:[612])] spids: [612] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:chip) op: Equal rhs: { (DQ (CommandSubPart command_list: (CommandList children: [ (Pipeline children: [ (C {(hostinfo)}) (C {(sed)} {(-n)} {(SQ <'s/^Processor type: .* (\\(.*\\))$/\\1/p'>)} ) (C {(tr)} {(SQ <' /:'>)} {(SQ <...>)}) ] negated: F ) ] ) left_token: <Left_Backtick '`'> spids: [619 643] ) ) } spids: [617] ) ] spids: [617] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:kern) op:Equal rhs:{(DQ )} spids:[647])] spids: [647] ) ] spids: [562 563 652 16777215] ) (case_arm pat_list: [{(Lit_Other '*')}] action: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:oper) op: Equal rhs: {(DQ (unknown))} spids: [659] ) ] spids: [659] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:arch) op:Equal rhs:{(DQ )} spids:[665])] spids: [665] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:syst) op:Equal rhs:{(DQ )} spids:[670])] spids: [670] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:chip) op:Equal rhs:{(DQ )} spids:[675])] spids: [675] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:kern) op:Equal rhs:{(DQ )} spids:[680])] spids: [680] ) ] spids: [655 656 685 16777215] ) ] spids: [553 559 688] ) (C {(rm)} {(-f)} {(trycpp.o)} {(trycpp)}) ] spids: [534 699] ) (Case to_match: {(DQ ($ VSub_Name '$chip'))} arms: [ (case_arm pat_list: [{(80486)}] action: [ (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:chip) op:Equal rhs:{(i486)} spids:[718])] spids: [718] ) ] spids: [710 711 722 16777215] ) (case_arm pat_list: [{(i486DX)}] action: [ (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:chip) op:Equal rhs:{(i486-dx)} spids:[732])] spids: [732] ) ] spids: [724 725 736 16777215] ) (case_arm pat_list: [{(i486.DX2)}] action: [ (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:chip) op:Equal rhs:{(i486-dx2)} spids:[746])] spids: [746] ) ] spids: [738 739 750 16777215] ) (case_arm pat_list: [{(Intel.586)}] action: [ (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:chip) op:Equal rhs:{(pentium)} spids:[760])] spids: [760] ) ] spids: [752 753 764 16777215] ) (case_arm pat_list: [{(i586)}] action: [ (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:chip) op:Equal rhs:{(pentium)} spids:[774])] spids: [774] ) ] spids: [766 767 778 16777215] ) (case_arm pat_list: [{(i686)}] action: [ (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:chip) op:Equal rhs:{(ppro)} spids:[788])] spids: [788] ) ] spids: [780 781 16777215 791] ) ] spids: [702 708 791] ) (If arms: [ (if_arm cond: [(C {(gcc)} {(-c)} {(x86cpuid.c)})] action: [ (If arms: [ (if_arm cond: [(C {(gcc)} {(-o)} {(x86cpuid)} {(x86cpuid.o)})] action: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:x86cpuid) op: Equal rhs: { (DQ (CommandSubPart command_list: (CommandList children: [ (Pipeline children: [ (C {(./x86cpuid)}) (C {(tr)} {(/) (Lit_Other ':')} {(..)}) ] negated: F ) ] ) left_token: <Left_Backtick '`'> spids: [821 832] ) ) } spids: [819] ) ] spids: [819] ) (Case to_match: {(DQ ($ VSub_Name '$x86cpuid'))} arms: [ (case_arm pat_list: [{(Lit_Other '?') (Lit_Other '*')}] action: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:chip) op: Equal rhs: {(DQ ($ VSub_Name '$x86cpuid'))} spids: [850] ) ] spids: [850] ) ] spids: [845 847 856 16777215] ) ] spids: [836 842 859] ) ] spids: [16777215 816] ) ] spids: [16777215 862] ) ] spids: [16777215 802] ) ] spids: [16777215 864] ) (C {(rm)} {(-f)} {(x86cpuid)} {(x86cpuid.o)}) (Pipeline children: [ (C {(echo)} { (DQ ($ VSub_Name '$oper') ('-:') ($ VSub_Name '$arch') ('-:') ($ VSub_Name '$syst') ('-:') ($ VSub_Name '$chip') ('-:') ($ VSub_Name '$kern') (-) ) } ) (C {(tr)} {(SQ <' [A-Z]'>)} {(SQ <'.[a-z]'>)}) ] negated: F ) ] )