<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>The Domain here is Shell Scripts. Clearly, they are Useful in
      other Contexts.</p>
    <p>Perhaps I should have said "STOP using Backticks for *shell
      command replacement*"</p>
    <p>JIM<br>
    </p>
    <div class="moz-cite-prefix">On 8/12/19 2:05 PM, Tim Spangler wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:071401d55138$92fb7870$b8f26950$@jefnet.com">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <meta name="Generator" content="Microsoft Word 15 (filtered
        medium)">
      <style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1">
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">Off
            the top of my head, Perl execution of shell script where you
            want to capture STDOUT and using a file descriptor would be
            inappropriate (thinking of past problems with Cygwin).  <o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
        <p class="MsoNormal"><b><span
              style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">
            CALUG [<a class="moz-txt-link-freetext" href="mailto:calug-bounces@unknownlamer.org">mailto:calug-bounces@unknownlamer.org</a>] <b>On Behalf
              Of </b>Jason C. Miller<br>
            <b>Sent:</b> Monday, August 12, 2019 12:38 PM<br>
            <b>To:</b> Bryan J Smith <a class="moz-txt-link-rfc2396E" href="mailto:b.j.smith@ieee.org"><b.j.smith@ieee.org></a><br>
            <b>Cc:</b> CALUG mailing-list <a class="moz-txt-link-rfc2396E" href="mailto:calug@unknownlamer.org"><calug@unknownlamer.org></a><br>
            <b>Subject:</b> Re: [CALUG] offsite for file access<o:p></o:p></span></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <div>
          <p class="MsoNormal">Short of legacy Bourne-shell execution,
            what are the cases?<o:p></o:p></p>
        </div>
        <p class="MsoNormal"><o:p> </o:p></p>
        <div>
          <div>
            <p class="MsoNormal">On Mon, Aug 12, 2019 at 9:35 AM Bryan J
              Smith <<a href="mailto:b.j.smith@ieee.org"
                moz-do-not-send="true">b.j.smith@ieee.org</a>> wrote:<o:p></o:p></p>
          </div>
          <blockquote style="border:none;border-left:solid #CCCCCC
            1.0pt;padding:0in 0in 0in
            6.0pt;margin-left:4.8pt;margin-right:0in">
            <div>
              <p class="MsoNormal">Backticks are required in some cases
                though, so they do have their purpose.<o:p></o:p></p>
              <div>
                <p class="MsoNormal"><o:p> </o:p></p>
              </div>
              <div>
                <p class="MsoNormal">- bjs<o:p></o:p></p>
              </div>
            </div>
            <p class="MsoNormal"><o:p> </o:p></p>
            <div>
              <div>
                <p class="MsoNormal">On Mon, Aug 12, 2019 at 12:07 PM
                  Jim Cottrell <<a
                    href="mailto:jecottrell3@comcast.net"
                    target="_blank" moz-do-not-send="true">jecottrell3@comcast.net</a>>
                  wrote:<o:p></o:p></p>
              </div>
              <blockquote style="border:none;border-left:solid #CCCCCC
                1.0pt;padding:0in 0in 0in
                6.0pt;margin-left:4.8pt;margin-right:0in">
                <p class="MsoNormal">STOP using Backticks!<br>
                  <br>
                  GOOD: var=$(command args...)<br>
                  <br>
                  BAD: var=`command args...`<br>
                  <br>
                  At the Very Least, you won't have to explain what kind
                  of Quotes you are <br>
                  using.<br>
                  <br>
                  JIM<br>
                  <br>
                  On 8/8/19 1:08 PM, Howard Bampton wrote:<br>
                  > 1) Save message to a scratch file<br>
                  > 2) egrep '(http:|https:)' /path/to/scratchfile
                  > /path/to/newfile<br>
                  > 3) wget `cat /path/to/newfile`<br>
                  ><br>
                  > The single quote marks in step 3 are back tics
                  (`), not normal single <br>
                  > quotes (') [aka not the quote on the same key as
                  the double quote key]<br>
                  <br>
                  _______________________________________________<br>
                  CALUG mailing list<br>
                  <a href="mailto:CALUG@unknownlamer.org"
                    target="_blank" moz-do-not-send="true">CALUG@unknownlamer.org</a><br>
                  <a href="http://lists.unknownlamer.org/listinfo/calug"
                    target="_blank" moz-do-not-send="true">http://lists.unknownlamer.org/listinfo/calug</a><o:p></o:p></p>
              </blockquote>
            </div>
            <p class="MsoNormal">_______________________________________________<br>
              CALUG mailing list<br>
              <a href="mailto:CALUG@unknownlamer.org" target="_blank"
                moz-do-not-send="true">CALUG@unknownlamer.org</a><br>
              <a href="http://lists.unknownlamer.org/listinfo/calug"
                target="_blank" moz-do-not-send="true">http://lists.unknownlamer.org/listinfo/calug</a><o:p></o:p></p>
          </blockquote>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
CALUG mailing list
<a class="moz-txt-link-abbreviated" href="mailto:CALUG@unknownlamer.org">CALUG@unknownlamer.org</a>
<a class="moz-txt-link-freetext" href="http://lists.unknownlamer.org/listinfo/calug">http://lists.unknownlamer.org/listinfo/calug</a>
</pre>
    </blockquote>
  </body>
</html>