On Tue, Mar 22, 2011 at 12:51 PM, Brian C. Lane <span dir="ltr">&lt;<a href="mailto:bcl@redhat.com">bcl@redhat.com</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

<div class="im">On Tue, Mar 22, 2011 at 12:12:34PM -0400, Frederick Grose wrote:<br>
&gt; On Tue, Mar 22, 2011 at 11:46 AM, Brian C. Lane &lt;<a href="mailto:bcl@redhat.com">bcl@redhat.com</a>&gt; wrote:<br>
&gt;<br>
&gt; &gt; On Tue, Mar 22, 2011 at 11:09:01AM -0400, Frederick Grose wrote:<br>
&gt; &gt; &gt; Sorry,<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; The followup patch,<br>
&gt; &gt; &gt; <a href="https://bugzilla.redhat.com/attachment.cgi?id=486551" target="_blank">https://bugzilla.redhat.com/attachment.cgi?id=486551</a><br>
&gt; &gt; &gt; is needed.<br>
&gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; != instead of ==, right?<br>
&gt; &gt;<br>
&gt; &gt; But that means SYSLINUXPATH will always be &quot;&quot;<br>
&gt; &gt;<br>
&gt; &gt; That doesn&#39;t make sense to me, it will break multi support.<br>
&gt; &gt;<br>
&gt; &gt; Brian<br>
&gt; &gt;<br>
&gt;<br>
&gt;     check=($(syslinux --version 2&gt;&amp;1)) || :<br>
&gt;     if [[ &#39;syslinux&#39; != $check ]]; then<br>
&gt;         SYSLINUXPATH=&quot;&quot;<br>
&gt;     elif [ -n &quot;$multi&quot; ]; then<br>
&gt;         SYSLINUXPATH=&quot;$LIVEOS/syslinux&quot;<br>
&gt;     else<br>
&gt;         SYSLINUXPATH=&quot;syslinux&quot;<br>
&gt;     fi<br>
&gt;<br>
&gt;<br>
&gt; The check variable will contain the array returned by<br>
&gt;<br>
&gt; syslinux --version<br>
&gt;<br>
&gt;<br>
&gt; if the first member is NOT &#39;syslinux&#39;, then<br>
&gt;<br> 
<br>
</div>Ah, ok. I though $check would have the whole string.<br>
<br>
Thanks,<br>
<div><div></div><div class="h5"><br>
--<br>
Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)<br>
</div></div></blockquote></div><br><span style="font-family: courier new,monospace;">Sorry.  A more explicit expression would be,</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">if [[ syslinux != ${check[0]} ]]; then</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">${check[*]} returns the whole array,<br>

<br style="font-family: courier new,monospace;"></span><span style="font-family: courier new,monospace;">syslinux 4.02 Copyright 1994-2010 H. Peter Anvin et al</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"><br>

${check[1]} == 4.02</span><br><br>      --Fred<br>