(command.CommandList children: [ (command.CommandList children: [ (command.Sentence child: (C {<.>} { (DQ (braced_var_sub token: <Id.VSub_Name srcdir> suffix_op: (suffix_op.Unary tok:<Id.VTest_Equals '='> arg_word:{<.>}) ) <'/tests/init.sh'> ) } ) terminator: <Id.Op_Semi _> ) (C {<path_prepend_>} {<'./src'>}) ] ) (C {<print_ver_>} {<touch>}) (command.If arms: [ (if_arm cond: (condition.Shell commands: [ (command.Sentence child: (C {<env>} {<-->} {<test>} {<-w>} {<'/'>}) terminator: <Id.Op_Semi _> ) ] ) action: [(C {<skip_>} {<you>} {<have>} {<write>} {<access>} {<to>} {<'/.'>})] spids: [68 81] ) ] ) (command.If arms: [ (if_arm cond: (condition.Shell commands: [ (command.Sentence child: (command.AndOr ops: [Id.Op_DPipe] children: [ (C {<env>} {<-->} {<test>} {<-O>} {<'/'>}) (C {<env>} {<-->} {<test>} {<-G>} {<'/'>}) ] ) terminator: <Id.Op_Semi _> ) ] ) action: [(C {<skip_>} {(DQ <'you own /.'>)})] spids: [101 126] ) ] ) (C {<skip_if_root_>}) (command.AndOr ops: [Id.Op_DAmp] children: [ (command.Simple words: [{<touch>} {<'/'>}] redirects: [ (redir op:<Id.Redir_Great '>'> loc:(redir_loc.Fd fd:1) arg:{<out>}) (redir op:<Id.Redir_GreatAnd '2>&'> loc:(redir_loc.Fd fd:2) arg:{<1>}) ] do_fork: T ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:fail) op: assign_op.Equal rhs: {<1>} spids: [164] ) ] ) ] ) (command.ForEach iter_name: msg iter_words: [ {(SQ <'Not owner'>)} {(SQ <'Operation not permitted'>)} {(SQ <'Permission denied'>)} {(SQ <'Read-only file system'>)} ] do_arg_iter: F body: (command.DoGroup children: [ (command.Simple words: [{<cat>}] redirects: [ (redir op:<Id.Redir_Great '>'> loc:(redir_loc.Fd fd:1) arg:{<exp>}) (redir op: <Id.Redir_DLess '<<'> loc: (redir_loc.Fd fd:0) arg: (redir_param.HereDoc here_begin: {<EOF>} here_end_span_id: 221 stdin_parts: [ <'touch: setting times of \'/\': '> ($ Id.VSub_DollarName '$msg') <'\n'> ] ) ) ] do_fork: T ) (command.AndOr ops: [Id.Op_DAmp] children: [ (command.Simple words: [{<cmp>} {<out>} {<exp>}] redirects: [ (redir op: <Id.Redir_Great '>'> loc: (redir_loc.Fd fd:1) arg: {<'/dev/null'>} ) (redir op: <Id.Redir_GreatAnd '2>&'> loc: (redir_loc.Fd fd:2) arg: {<1>} ) ] do_fork: T ) (BraceGroup children: [ (command.Sentence child: (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:match) op: assign_op.Equal rhs: {<1>} spids: [241] ) ] ) terminator: <Id.Op_Semi _> ) (command.Sentence child: (command.ControlFlow token:<Id.ControlFlow_Break break>) terminator: <Id.Op_Semi _> ) ] ) ] ) ] ) ) (command.AndOr ops: [Id.Op_DPipe] children: [ (C {<test>} {(DQ ($ Id.VSub_DollarName '$match'))} {<Id.Lit_Equals '='>} {<1>}) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:fail) op: assign_op.Equal rhs: {<1>} spids: [264] ) ] ) ] ) (command.AndOr ops: [Id.Op_DAmp] children: [ (C {<test>} {($ Id.VSub_DollarName '$fail')} {<Id.Lit_Equals '='>} {<1>}) (C {<compare>} {<exp>} {<out>}) ] ) (C {<Exit>} {($ Id.VSub_DollarName '$fail')}) ] )