<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head><body><div>Thanks for sharing this!  TIL!<br /><br /><div style="mso-line-height-rule:exactly;-webkit-text-size-adjust:100%;"><table cellpadding="0" cellspacing="0" border="0" style="width:100%;"><tr style="font-size:0;"><td align="left" style="vertical-align:top;"><table cellpadding="0" cellspacing="0" border="0" style="font-size:0;"><tr style="font-size:0;"><td align="left" style="padding:10px 0;vertical-align:middle;"><table cellpadding="0" cellspacing="0" border="0" style="width:100%;font-size:0;"><tr style="font-size:0;"><td align="left" style="vertical-align:top;"><table cellpadding="0" cellspacing="0" border="0" style="font-size:0;"><tr style="font-size:0;"><td align="left" style="vertical-align:top;"><table cellpadding="0" cellspacing="0" border="0" style="font-size:0;color:#E43D30;font-style:normal;font-weight:400;white-space:nowrap;"><tr style="font-size:14.67px;"><td align="left" style="vertical-align:top;font-family:Arial;font-weight:700;">Chris<span style="font-family:remialcxesans;font-size:1px;color:#FFFFFF;line-height:1px;">​</span> </td><td align="left" style="vertical-align:top;font-family:Arial;font-weight:700;">Gauthier</td><td align="left" style="vertical-align:top;color:#444444;font-family:Arial;"> Senior Network Engineer</td><td align="left" style="vertical-align:top;font-family:Arial;"> | </td><td align="left" style="vertical-align:top;color:#444444;font-family:Arial;">Comscore<br /></td></tr></table></td></tr></table></td></tr><tr style="font-size:0;"><td align="left" style="vertical-align:top;"><table cellpadding="0" cellspacing="0" border="0" style="font-size:0;"><tr style="font-size:0;"><td align="left" style="padding:3px 0 0;vertical-align:top;"><table cellpadding="0" cellspacing="0" border="0" style="font-size:0;color:#444444;font-style:normal;font-weight:400;white-space:nowrap;"><tr style="font-size:14.67px;"><td align="left" style="vertical-align:top;font-family:Arial;">t +1 <a href="tel:(503)%20331-2704" target="_blank" id="LPlnk689713" style="text-decoration:none;color:#444444;"><strong style="font-weight:400;">(503) 331-2704</strong></a></td><td align="left" style="vertical-align:top;color:#E43D30;font-family:Arial;"> | <br /></td><td align="left" style="vertical-align:top;font-family:Arial;"><a href="mailto:cgauthier@comscore.com" target="_blank" id="LPlnk689713" style="text-decoration:none;color:#444444;"><strong style="font-weight:400;">cgauthier@comscore.com</strong></a></td></tr></table></td></tr></table></td></tr><tr style="font-size:0;"><td align="left" style="vertical-align:top;"><table cellpadding="0" cellspacing="0" border="0" style="font-size:0;"><tr style="font-size:0;"><td align="left" style="padding:2px 0 0;vertical-align:top;"><table cellpadding="0" cellspacing="0" border="0" style="font-size:0;color:#444444;font-style:normal;font-weight:400;white-space:nowrap;"><tr style="font-size:14.67px;"><td align="left" style="vertical-align:top;font-family:Arial;"><a href="http://www.comscore.com/" target="_blank" id="LPlnk689713" style="text-decoration:none;color:#0563C1;"><strong style="font-weight:400;">comscore.com</strong></a></td></tr></table></td></tr></table></td></tr><tr style="font-size:0;"><td align="left" style="vertical-align:top;"><table cellpadding="0" cellspacing="0" border="0" style="font-size:0;"><tr style="font-size:0;"><td align="left" style="padding:10px 0 2px;vertical-align:top;"><table cellpadding="0" cellspacing="0" border="0" style="font-size:0;"><tr style="font-size:0;"><td align="left" style="vertical-align:top;"><table cellpadding="0" cellspacing="0" border="0" style="white-space:normal;color:#444444;font-size:10.67px;font-family:Arial;font-weight:400;font-style:normal;text-align:justify;width:500px;"><tr style="font-size:10.67px;"><td style="font-family:Arial;">​​​This e-mail (including any attachments) may contain information that is private, confidential, or protected by attorney-client or other privilege. If you received this e-mail in error, please delete it from your system and notify sender.</td></tr></table></td></tr></table></td></tr></table></td></tr></table></td></tr></table></td></tr></table></div>-----Original Message-----<br />From: "Piegorsch, Weylin William" <weylin@bu.edu><br />Date: Tuesday, June 18, 2019 at 2:03 AM<br />To: Jean Benoit <jean@unistra.fr><br />Cc: "Gauthier, Chris" <cgauthier@comscore.com>, Michael Newton <mnewton@pofp.com>, Vacheslav Zouhairy <m_zouhairy@skno.by>, "rancid-discuss@shrubbery.net" <rancid-discuss@shrubbery.net><br />Subject: Re: [rancid] Unable to figure out "end of run not found"<br /><br />> you can even put redirects<br /><br />That's a neat trick!!!  I'll have to remember that one; thanks!<br />__<br /><br />weylin<br /><br />On 6/17/19, 5:27 PM, "Jean Benoit" <jean@unistra.fr> wrote:<br /><br />    On Mon, Jun 17, 2019 at 09:05:13PM +0000, Piegorsch, Weylin William wrote:<br />    > I actually don't use the semicolon.<br />    > Not sure if this is bash specific, sh specific, or posix general, but<br />    > without the semicolon it sets the global environment variable only for the<br />    > duration of that command following the variable definition, and unset it<br />    > upon returning control to the cli. See also your "export" comment, which<br />    > has correlating implications regarding environment vs namespace vs scope.<br />    > But I'm not an experienced programmer, and don't pretend to grok the<br />    > various nuances, benefits, and pitfalls known by those who actually know<br />    > what they're doing, so if using the semicolon is better I all ears.<br />    <br />    You are right: ; is not necessary.<br />    <br />    NOPIPE=yes rancid -d -t type devicename<br />    <br />    is is a perfectly valid syntax according to POSIX Shell Grammar Rules.<br />    It works with bash, dash, ksh, zsh and other shells.<br />    <br />    https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fpubs.opengroup.org%2fonlinepubs%2f9699919799%2futilities%2fV3_chap02.html%23tag_18_10_02&c=E,1,pVeiRZ33eh0bANTtrPcyWLXgDYYcEhv1fVgAMKs-rqhpxiQGGKwtaHnc1ENunuBCFwIl6XJo0fGwJdkcHgduuUt2gpDkO7h_-c4J99skKxG0vy0,&typo=1 <br />    see "simple_command" syntax and rule 7, which defines "ASSIGNMENT_WORD".<br />    <br />    simple_command   : cmd_prefix cmd_word cmd_suffix<br />                     | cmd_prefix cmd_word<br />                     | cmd_prefix<br />                     | cmd_name cmd_suffix<br />                     | cmd_name<br />    <br />    cmd_prefix       :            io_redirect<br />                     | cmd_prefix io_redirect<br />                     |            ASSIGNMENT_WORD<br />                     | cmd_prefix ASSIGNMENT_WORD<br />    <br />    You don't need the ; and you dont need export, and you can even put<br />    redirects, as long as assignments are before the command.<br />    Example :<br />    XYZ=foo </tmp/x >/tmp/y A=1 B=bar mycommand myarg<br />    <br />    -- <br />    Jean<br />    <br /><br /><br /></div></body></html>