(command.CommandList children: [ (C {<echo>} { (DQ <'/*\n'> <' * Copyright 2008 Sun Microsystems, Inc. All rights reserved.\n'> <' * Use is subject to license terms.\n'> <' */\n'> <'\n'> <'#pragma ident'> <Id.Lit_BadBackslash '\\'> <t> (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\"'> ch:'"') <'%Z%%M%'> <Id.Lit_BadBackslash '\\'> <'t%I%'> <Id.Lit_BadBackslash '\\'> <'t%E%'> <Id.Lit_BadBackslash '\\'> <tSMI> (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\"'> ch:'"') <'\n'> <'\n'> <'#include <strings.h>\n'> <'#include <scsi/libscsi.h>\n'> <'\n'> <'static const struct {\n'> <Id.Lit_BadBackslash '\\'> <'tchar *name;'> <Id.Lit_BadBackslash '\\'> <t> <Id.Lit_BadBackslash '\\'> <'t/* error name */\n'> <Id.Lit_BadBackslash '\\'> <'tchar *msg;'> <Id.Lit_BadBackslash '\\'> <t> <Id.Lit_BadBackslash '\\'> <'t/* error message */\n'> <'} _libscsi_errstr[] = {'> ) } ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'pattern='> name:pattern) op: assign_op.Equal rhs: {(SQ <'^\t\\(ESCSI_[A-Z0-9_]*\\),*'>)} spids: [123] ) ] redirects: [] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'replace='> name:replace) op: assign_op.Equal rhs: {(SQ <'\t{ "\\1",'>)} spids: [128] ) ] redirects: [] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'open='> name:open) op: assign_op.Equal rhs: {(SQ <'\t\\/\\* '>)} spids: [133] ) ] redirects: [] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'openrepl='> name:openrepl) op: assign_op.Equal rhs: {(SQ <'"'>)} spids: [138] ) ] redirects: [] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'close='> name:close) op: assign_op.Equal rhs: {(SQ <' \\*\\/$'>)} spids: [143] ) ] redirects: [] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'closerepl='> name:closerepl) op: assign_op.Equal rhs: {(SQ <'" },'>)} spids: [148] ) ] redirects: [] ) (command.AndOr ops: [Id.Op_DPipe] children: [ (command.Subshell child: (command.Pipeline children: [ (C {<sed>} {<-n>} { (DQ <'s/'> ($ Id.VSub_DollarName pattern) <'/'> ($ Id.VSub_DollarName replace) <'/p'>) } ) (C {<sed>} {<-n>} { (DQ <'s/'> ($ Id.VSub_DollarName open) <'/'> ($ Id.VSub_DollarName openrepl) <'/p'>) } ) (C {<sed>} {<-n>} { (DQ <'s/'> ($ Id.VSub_DollarName close) <'/'> ($ Id.VSub_DollarName closerepl) <'/p'>) } ) ] negated: F stderr_indices: [] ) redirects: [] ) (command.ControlFlow token:<Id.ControlFlow_Exit exit> arg_word:{<1>}) ] ) (C {<echo>} { (DQ <'};'> <Id.Lit_BadBackslash '\\'> <n> <Id.Lit_BadBackslash '\\'> <n> <'static int _libscsi_nerrno = sizeof (_libscsi_errstr) /'> <Id.Lit_BadBackslash '\\'> <n> <' sizeof (_libscsi_errstr[0]);'> <Id.Lit_BadBackslash '\\'> <n> <Id.Lit_BadBackslash '\\'> <n> <'const char *\n'> <'libscsi_strerror(libscsi_errno_t err)\n'> <'{\n'> <'\treturn (err < 0 || err >= _libscsi_nerrno ? '> (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\"'> ch:'"') <'unknown error'> (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\"'> ch:'"') <' :\n'> <'\t _libscsi_errstr[err].msg);\n'> <'}\n'> <'\n'> <'const char *\n'> <'libscsi_errname(libscsi_errno_t err)\n'> <'{\n'> <'\treturn (err < 0 || err >= _libscsi_nerrno ? NULL :\n'> <'\t _libscsi_errstr[err].name);\n'> <'}\n'> <'\n'> <'libscsi_errno_t\n'> <'libscsi_errcode(const char *name)\n'> <'{\n'> <'\tlibscsi_errno_t err;\n'> <'\n'> <'\tfor (err = 0; err < _libscsi_nerrno; err++) {\n'> <'\t\tif (strcmp(name, _libscsi_errstr[err].name) == 0)\n'> <'\t\t\treturn (err);\n'> <'\t}\n'> <'\n'> <'\treturn (ESCSI_UNKNOWN);\n'> <'}'> ) } ) (command.ControlFlow token:<Id.ControlFlow_Exit exit> arg_word:{<0>}) ] )