(CommandList children: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:now) op: Equal rhs: { (DQ (CommandSubPart command_list: (CommandList children: [ (C {(date)} {(Lit_Other '+') (Lit_Other '%') (y) (Lit_Other '%') (m) (Lit_Other '%') (d)} ) ] ) left_token: <Left_CommandSub '$('> spids: [13 23] ) ) } spids: [11] ) ] spids: [11] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:start) op: Equal rhs: {(DQ ('http://www.straightdope.com/ '))} spids: [26] ) ] spids: [26] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:to) op: Equal rhs: {(DQ ('testing@yourdomain.com'))} spids: [31] ) ] spids: [31] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:URL) op: Equal rhs: { (DQ (CommandSubPart command_list: (CommandList children: [ (Pipeline children: [ (C {(curl)} {(-s)} {(DQ ($ VSub_Name '$start'))}) (C {(grep)} {(-A1)} {(SQ <teaser>)}) (C {(sed)} {(-n)} {(SQ <2p>)}) (C {(cut)} {(-d) (EscapedLiteralPart token:<Lit_EscapedChar '\\"'>)} {(-f2)}) (C {(cut)} {(-d) (EscapedLiteralPart token:<Lit_EscapedChar '\\"'>)} {(-f1)}) ] negated: F ) ] ) left_token: <Left_CommandSub '$('> spids: [46 96] ) ) } spids: [44] ) ] spids: [44] ) (Pipeline children: [ (Subshell child: (CommandList children: [ (SimpleCommand words: [{(cat)}] redirects: [ (HereDoc op: <Redir_DLess '<<'> fd: 16777215 here_begin: {(EOF)} here_end_span_id: 128 stdin_parts: [ ('Subject: The Straight Dope for ') (CommandSubPart command_list: (CommandList children: [(C {(date)} {(DQ ('+%A, %d %B, %Y'))})] ) left_token: <Left_CommandSub '$('> spids: [113 119] ) ('\n') ('From: Cecil Adams <dont@reply.com>\n') ('Content-type: text/html\n') ('To: ') ($ VSub_Name '$to') ('\n') ('\n') ] ) ] ) (C {(curl)} {(DQ ($ VSub_Name '$URL'))}) ] ) spids: [104 136] ) (C {(/usr/sbin/sendmail)} {(-t)}) ] negated: F ) (ControlFlow token:<ControlFlow_Exit exit> arg_word:{(0)}) ] )