(command.CommandList children: [ (command.CommandList children: [ (command.Sentence child: (command.Assignment keyword: Assign_None pairs: [(assign_pair lhs:(lhs_expr.LhsName name:user) op:Equal rhs:{(DQ )})] ) terminator: <Op_Semi ';'> ) (command.Sentence child: (command.Assignment keyword: Assign_None pairs: [(assign_pair lhs:(lhs_expr.LhsName name:tty) op:Equal rhs:{(DQ )})] ) terminator: <Op_Semi ';'> ) (command.Sentence child: (command.Assignment keyword: Assign_None pairs: [(assign_pair lhs:(lhs_expr.LhsName name:showpid) op:Equal rhs:{(0)})] ) terminator: <Op_Semi ';'> ) (command.Assignment keyword: Assign_None pairs: [(assign_pair lhs:(lhs_expr.LhsName name:niceval) op:Equal rhs:{(DQ ('+1'))})] ) ] ) (command.WhileUntil keyword: <KW_While while> cond: [ (command.Sentence child: (C {(getopts)} {(DQ ('n:u:t:p'))} {(opt)}) terminator: <Op_Semi ';'> ) ] body: (command.DoGroup children: [ (command.Case to_match: {($ VSub_DollarName '$opt')} arms: [ (case_arm pat_list: [{(n)}] action: [ (command.Sentence child: (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:niceval) op: Equal rhs: {(DQ ($ VSub_DollarName '$OPTARG'))} ) ] ) terminator: <Op_Semi ';'> ) ] ) (case_arm pat_list: [{(u)}] action: [ (command.If arms: [ (if_arm cond: [ (command.Sentence child: (C {(Lit_Other '[')} {(KW_Bang '!')} {(-z)} {(DQ ($ VSub_DollarName '$tty'))} {(Lit_Other ']')} ) terminator: <Op_Semi ';'> ) ] action: [ (command.SimpleCommand words: [ {(echo)} { (DQ ($ VSub_Number '$0') (': error: -u and -t are mutually exclusive.') ) } ] 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:user) op: Equal rhs: {($ VSub_DollarName '$OPTARG')} ) ] ) ] ) (case_arm pat_list: [{(t)}] action: [ (command.If arms: [ (if_arm cond: [ (command.Sentence child: (C {(Lit_Other '[')} {(KW_Bang '!')} {(-z)} {(DQ ($ VSub_DollarName '$user'))} {(Lit_Other ']')} ) terminator: <Op_Semi ';'> ) ] action: [ (command.SimpleCommand words: [ {(echo)} { (DQ ($ VSub_Number '$0') (': error: -u and -t are mutually exclusive.') ) } ] 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:tty) op: Equal rhs: {($ VSub_DollarName '$OPTARG')} ) ] ) ] ) (case_arm pat_list: [{(p)}] action: [ (command.Sentence child: (command.Assignment keyword: Assign_None pairs: [(assign_pair lhs:(lhs_expr.LhsName name:showpid) op:Equal rhs:{(1)})] ) terminator: <Op_Semi ';'> ) ] ) (case_arm pat_list: [{(Lit_Other '?')}] action: [ (command.SimpleCommand words: [ {(echo)} { (DQ ('Usage: ') ($ VSub_Number '$0') (' [-n niceval] [-u user|-t tty] [-p] pattern') ) } ] redirects: [(redir.Redir op:<Redir_GreatAnd '>&'> fd:16777215 arg_word:{(2)})] ) (command.SimpleCommand words: [ {(echo)} { (DQ ('Default niceval change is ') (word_part.EscapedLiteralPart token: <Lit_EscapedChar '\\"'> ) ($ VSub_DollarName '$niceval') (word_part.EscapedLiteralPart token:<Lit_EscapedChar '\\"'>) (' (plus is lower') ) } ] redirects: [(redir.Redir op:<Redir_GreatAnd '>&'> fd:16777215 arg_word:{(2)})] ) (command.SimpleCommand words: [ {(echo)} {(DQ ('priority, minus is higher, but only root can go below 0)'))} ] redirects: [(redir.Redir op:<Redir_GreatAnd '>&'> fd:16777215 arg_word:{(2)})] ) (command.ControlFlow token: <ControlFlow_Exit exit> arg_word: {(1)} ) ] ) ] ) ] ) ) (C {(shift)} { (word_part.ArithSubPart anode: (arith_expr.ArithBinary op_id: Arith_Minus left: (arith_expr.ArithWord w:{($ VSub_DollarName '$OPTIND')}) right: (arith_expr.ArithWord w:{(Lit_Digits 1)}) ) ) } ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (C {(Lit_Other '[')} {($ VSub_Pound '$#')} {(-eq)} {(0)} {(Lit_Other ']')}) terminator: <Op_Semi ';'> ) ] action: [ (command.SimpleCommand words: [ {(echo)} { (DQ ('Usage: ') ($ VSub_Number '$0') (' [-n niceval] [-u user|-t tty] [-p] pattern')) } ] redirects: [(redir.Redir op:<Redir_GreatAnd '>&'> fd:16777215 arg_word:{(2)})] ) (command.ControlFlow token:<ControlFlow_Exit exit> arg_word:{(1)}) ] ) ] ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (C {(Lit_Other '[')} {(KW_Bang '!')} {(-z)} {(DQ ($ VSub_DollarName '$tty'))} {(Lit_Other ']')} ) terminator: <Op_Semi ';'> ) ] action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:pid) op: Equal rhs: { (word_part.CommandSubPart command_list: (command.CommandList children: [ (command.Pipeline children: [ (C {(ps)} {(cu)} {(-t)} {($ VSub_DollarName '$tty')}) (C {(awk)} { (DQ ('/ ') ($ VSub_Number '$1') ('/ { print ') (word_part.EscapedLiteralPart token: <Lit_EscapedChar '\\\\'> ) ($ VSub_Number '$2') (' }') ) } ) ] negated: F ) ] ) left_token: <Left_DollarParen '$('> ) } ) ] ) ] ) (if_arm cond: [ (command.Sentence child: (C {(Lit_Other '[')} {(KW_Bang '!')} {(-z)} {(DQ ($ VSub_DollarName '$user'))} {(Lit_Other ']')} ) terminator: <Op_Semi ';'> ) ] action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:pid) op: Equal rhs: { (word_part.CommandSubPart command_list: (command.CommandList children: [ (command.Pipeline children: [ (C {(ps)} {(cu)} {(-U)} {($ VSub_DollarName '$user')}) (C {(awk)} { (DQ ('/ ') ($ VSub_Number '$1') ('/ { print ') (word_part.EscapedLiteralPart token: <Lit_EscapedChar '\\\\'> ) ($ VSub_Number '$2') (' }') ) } ) ] negated: F ) ] ) left_token: <Left_DollarParen '$('> ) } ) ] ) ] ) ] else_action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:pid) op: Equal rhs: { (word_part.CommandSubPart command_list: (command.CommandList children: [ (command.Pipeline children: [ (C {(ps)} {(cu)} {(-U)} { (word_part.BracedVarSub token: <VSub_Name USER> suffix_op: (suffix_op.StringUnary op_id: VTest_ColonHyphen arg_word: {(LOGNAME)} ) ) } ) (C {(awk)} { (DQ ('/ ') ($ VSub_Number '$1') ('/ { print ') (word_part.EscapedLiteralPart token: <Lit_EscapedChar '\\$'> ) ('2 }') ) } ) ] negated: F ) ] ) left_token: <Left_DollarParen '$('> ) } ) ] ) ] ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (C {(Lit_Other '[')} {(-z)} {(DQ ($ VSub_DollarName '$pid'))} {(Lit_Other ']')}) terminator: <Op_Semi ';'> ) ] action: [ (command.Sentence child: (command.SimpleCommand words: [ {(echo)} {(DQ ($ VSub_Number '$0') (': no processes match pattern ') ($ VSub_Number '$1'))} ] redirects: [(redir.Redir op:<Redir_GreatAnd '>&'> fd:16777215 arg_word:{(2)})] ) terminator: <Op_Semi ';'> ) (command.ControlFlow token:<ControlFlow_Exit exit> arg_word:{(1)}) ] ) (if_arm cond: [ (command.Sentence child: (C {(Lit_Other '[')} {(KW_Bang '!')} {(-z)} { (DQ (word_part.CommandSubPart command_list: (command.CommandList children: [ (command.Pipeline children: [ (C {(echo)} {($ VSub_DollarName '$pid')}) (C {(grep)} {(SQ <' '>)}) ] negated: F ) ] ) left_token: <Left_DollarParen '$('> ) ) } {(Lit_Other ']')} ) terminator: <Op_Semi ';'> ) ] action: [ (C {(echo)} { (DQ ($ VSub_Number '$0') (': more than one process matches pattern ') (${ VSub_Number 1) (':') ) } ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (C {(Lit_Other '[')} {(KW_Bang '!')} {(-z)} {(DQ ($ VSub_DollarName '$tty'))} {(Lit_Other ']')} ) terminator: <Op_Semi ';'> ) ] action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:runme) op: Equal rhs: {(DQ ('ps cu -t ') ($ VSub_DollarName '$tty'))} ) ] ) ] ) (if_arm cond: [ (command.Sentence child: (C {(Lit_Other '[')} {(KW_Bang '!')} {(-z)} {(DQ ($ VSub_DollarName '$user'))} {(Lit_Other ']')} ) terminator: <Op_Semi ';'> ) ] action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:runme) op: Equal rhs: {(DQ ('ps cu -U ') ($ VSub_DollarName '$user'))} ) ] ) ] ) ] else_action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:runme) op: Equal rhs: { (DQ ('ps cu -U ') (word_part.BracedVarSub token: <VSub_Name USER> suffix_op: (suffix_op.StringUnary op_id: VTest_ColonHyphen arg_word: {(LOGNAME)} ) ) ) } ) ] ) ] ) (command.Pipeline children: [ (C {(eval)} {($ VSub_DollarName '$runme')}) (C {(awk)} { (DQ ('/ ') ($ VSub_Number '$1') ('/ { printf ') (word_part.EscapedLiteralPart token: <Lit_EscapedChar '\\"'> ) (' user %-8.8s pid %-6.6s job %s') (Lit_Other '\\') (n) (word_part.EscapedLiteralPart token: <Lit_EscapedChar '\\"'> ) (', ') (' ') (word_part.EscapedLiteralPart token:<Lit_EscapedChar '\\$'>) ('1,') (word_part.EscapedLiteralPart token: <Lit_EscapedChar '\\$'> ) ('2,') (word_part.EscapedLiteralPart token:<Lit_EscapedChar '\\$'>) ('11 }') ) } ) ] negated: F ) (C {(echo)} {(DQ ('Use -u user or -t tty to narrow down your selection criteria.'))}) ] ) (if_arm cond: [ (command.Sentence child: (C {(Lit_Other '[')} {($ VSub_DollarName '$showpid')} {(-eq)} {(1)} {(Lit_Other ']')}) terminator: <Op_Semi ';'> ) ] action: [(C {(echo)} {($ VSub_DollarName '$pid')})] ) ] else_action: [ (C {(/bin/echo)} {(-n)} {(DQ ('Renicing job ') (word_part.EscapedLiteralPart token:<Lit_EscapedChar '\\"'>))} ) (C {(/bin/echo)} {(-n)} { (word_part.CommandSubPart command_list: (command.CommandList children: [ (command.Pipeline children: [ (C {(ps)} {(cp)} {($ VSub_DollarName '$pid')}) (C {(sed)} {(SQ <'s/ [ ]*/ /g'>)}) (C {(tail)} {(-1)}) (C {(cut)} {(-d) (word_part.EscapedLiteralPart token:<Lit_EscapedChar '\\ '>)} {(-f6-)} ) ] negated: F ) ] ) left_token: <Left_DollarParen '$('> ) } ) (C {(echo)} { (DQ (word_part.EscapedLiteralPart token:<Lit_EscapedChar '\\"'>) (' (') ($ VSub_DollarName '$pid') (')') ) } ) (C {(renice)} {($ VSub_DollarName '$niceval')} {($ VSub_DollarName '$pid')}) ] ) (command.ControlFlow token:<ControlFlow_Exit exit> arg_word:{(0)}) ] )