(command.CommandList children: [ (command.Case case_kw: <Id.KW_Case case> to_match: (case_arg.Word w: { (CommandSub left_token: <Id.Left_DollarParen '$('> child: (command.Simple blame_tok: <getopts> more_env: [] words: [{<getopts>} {(SQ <'[-]'>)} {<opt>} {(DQ <'--???man'>)}] redirects: [(Redir op:<Id.Redir_GreatAnd '2>&'> loc:(redir_loc.Fd fd:2) arg:{<1>})] do_fork: T ) right: <Id.Eof_RParen _> ) } ) arms_start: <Id.KW_In in> arms: [ (CaseArm left: <Id.Lit_VarLike 'version='> pattern: (pat.Words words: [ {<Id.Lit_VarLike 'version='> <Id.Lit_LBracket '['> <0-9> <Id.Lit_RBracket ']'> <Id.Lit_Star '*'> } ] ) middle: <Id.Right_CasePat _> action: [ (command.ShAssignment left: <Id.Lit_VarLike 'usage='> pairs: [ (AssignPair left: <Id.Lit_VarLike 'usage='> lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'usage='> name:usage) op: assign_op.Equal rhs: { (SingleQuoted left: <Id.Left_DollarSingleQuote '$\''> tokens: [ <Id.Char_Literals '[-?@(#)yes (AT&T Labs Research) 2012-06-06'> <Id.Char_OneChar '\\n'> <Id.Char_Literals ']\n'> <Id.Char_Literals '\t'> ] right: <Id.Right_SingleQuote '\''> ) ($ Id.VSub_DollarName USAGE_LICENSE) (SingleQuoted left: <Id.Left_DollarSingleQuote '$\''> tokens: [ <Id.Char_Literals '\n'> <Id.Char_Literals '\t[+NAME?yes - repeatedly out a string until killed]\n'> <Id.Char_Literals '\t[+DESCRIPTION?'> <Id.Char_OneChar '\\b'> <Id.Char_Literals yes> <Id.Char_OneChar '\\b'> <Id.Char_Literals ' repeatedly writes '> <Id.Char_OneChar '\\a'> <Id.Char_Literals string> <Id.Char_OneChar '\\a'> <Id.Char_Literals ' to standard\n'> <Id.Char_Literals '\t\toutput, followed by a '> <Id.Char_OneChar '\\a'> <Id.Char_Literals newline> <Id.Char_OneChar '\\a'> <Id.Char_Literals ' character, until it\n'> <Id.Char_Literals '\t\tis terminated. If '> <Id.Char_OneChar '\\a'> <Id.Char_Literals string> <Id.Char_OneChar '\\a'> <Id.Char_Literals ' is omitted then\n'> <Id.Char_Literals '\t\tthen '> <Id.Char_OneChar '\\b'> <Id.Char_Literals y> <Id.Char_OneChar '\\b'> <Id.Char_Literals ' is used.]\n'> <Id.Char_Literals '\n'> <Id.Char_Literals '\t[string]\n'> <Id.Char_Literals '\n'> <Id.Char_Literals '\t[+EXIT STATUS?]{\n'> <Id.Char_Literals ' \t\t [+0?Success.]\n'> <Id.Char_Literals ' \t\t [+>0?An error occurred.]\n'> <Id.Char_Literals '\t}\n'> <Id.Char_Literals '\t'> ] right: <Id.Right_SingleQuote '\''> ) } ) ] redirects: [] ) ] right: <Id.Op_DSemi _> ) (CaseArm left: <Id.Lit_Star '*'> pattern: (pat.Words words:[{<Id.Lit_Star '*'>}]) middle: <Id.Right_CasePat _> action: [ (command.ShAssignment left: <Id.Lit_VarLike 'usage='> pairs: [ (AssignPair left: <Id.Lit_VarLike 'usage='> lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'usage='> name:usage) op: assign_op.Equal rhs: {(SQ )} ) ] redirects: [] ) ] right: <Id.Op_DSemi _> ) ] arms_end: <Id.KW_Esac esac> redirects: [] ) (command.WhileUntil keyword: <Id.KW_While while> cond: (condition.Shell commands: [ (command.Simple blame_tok: <getopts> more_env: [] words: [{<getopts>} {(DQ ($ Id.VSub_DollarName usage))} {<Id.KW_Var var>}] redirects: [] do_fork: T ) ] ) body: (command.DoGroup left: <Id.KW_Do do> children: [ (command.Case case_kw: <Id.KW_Case case> to_match: (case_arg.Word w:{($ Id.VSub_DollarName var)}) arms_start: <Id.KW_In in> arms: [] arms_end: <Id.KW_Esac esac> redirects: [] ) ] right: <Id.KW_Done done> ) redirects: [] ) (command.Simple blame_tok: <shift> more_env: [] words: [ {<shift>} { (word_part.ArithSub left: <Id.Left_DollarDParen '$(('> anode: (arith_expr.Binary op_id: Id.Arith_Minus left: ($ Id.Lit_ArithVarLike OPTIND) right: {<Id.Lit_Digits 1>} ) right: <Id.Right_DollarDParen _> ) } ] redirects: [] do_fork: T ) (command.ShAssignment left: <Id.Lit_VarLike 'string='> pairs: [ (AssignPair left: <Id.Lit_VarLike 'string='> lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'string='> name:string) op: assign_op.Equal rhs: { (BracedVarSub left: <Id.Left_DollarBrace '${'> token: <Id.VSub_At '@'> var_name: '@' suffix_op: (suffix_op.Unary op:<Id.VTest_Hyphen _> arg_word:{<y>}) right: <Id.Right_DollarBrace '}'> ) } ) ] redirects: [] ) (command.Case case_kw: <Id.KW_Case case> to_match: (case_arg.Word w:{($ Id.VSub_DollarName KSH_VERSION)}) arms_start: <Id.KW_In in> arms: [ (CaseArm left: <Id.Left_SingleQuote '\''> pattern: (pat.Words words:[{(SQ )}]) middle: <Id.Right_CasePat _> action: [ (command.ShAssignment left: <Id.Lit_VarLike 'echo='> pairs: [ (AssignPair left: <Id.Lit_VarLike 'echo='> lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'echo='> name:echo) op: assign_op.Equal rhs: {<echo>} ) ] redirects: [] ) ] right: <Id.Op_DSemi _> ) (CaseArm left: <Id.Lit_Star '*'> pattern: (pat.Words words:[{<Id.Lit_Star '*'>}]) middle: <Id.Right_CasePat _> action: [ (command.ShAssignment left: <Id.Lit_VarLike 'echo='> pairs: [ (AssignPair left: <Id.Lit_VarLike 'echo='> lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'echo='> name:echo) op: assign_op.Equal rhs: {(DQ <'print -r --'>)} ) ] redirects: [] ) ] right: <Id.Op_DSemi _> ) ] arms_end: <Id.KW_Esac esac> redirects: [] ) (command.WhileUntil keyword: <Id.KW_While while> cond: (condition.Shell commands: [ (command.Simple blame_tok: <Id.Lit_Colon ':'> more_env: [] words: [{<Id.Lit_Colon ':'>}] redirects: [] do_fork: T ) ] ) body: (command.DoGroup left: <Id.KW_Do do> children: [ (command.Simple blame_tok: <Id.VSub_DollarName '$echo'> more_env: [] words: [{($ Id.VSub_DollarName echo)} {(DQ ($ Id.VSub_DollarName string))}] redirects: [] do_fork: T ) ] right: <Id.KW_Done done> ) redirects: [] ) ] )