[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[no subject]



Generally, you'll get an error if the variable is unset and not enclosed 
in quotes because the shell will see: [ -eq 0 ]

Although I don't do bash, I believe you want '-eq' not 'eq'


-- 
Until later, Geoffrey                     Registered Linux User #108567
Building secure systems inspite of Microsoft


</pre>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<hr>
<!--X-Follow-Ups-End-->
<!--X-References-->
<ul><li><strong>References</strong>:
<ul>
<li><strong><a name="00743" href="msg00743.html">[ale] shell scripting baby questions...</a></strong>
<ul><li><em>From:</em> keith at iqtv.com (Keith Morris - IQ)</li></ul></li>
<li><strong><a name="00745" href="msg00745.html">[ale] shell scripting baby questions...</a></strong>
<ul><li><em>From:</em> lists at cybertechcafe.net (Nathan J. Underwood)</li></ul></li>
</ul></li></ul>
<!--X-References-End-->
<!--X-BotPNI-->
<ul>
<li>Prev by Date:
<strong><a href="msg00758.html">[ale] Linux Security article</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg00760.html">Clarification Re: [ale] 802.11g</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg00747.html">[ale] shell scripting baby questions...</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg01075.html">[ale] shell scripting baby questions...</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#00759"><strong>Date</strong></a></li>
<li><a href="threads.html#00759"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>

<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
</body>
</html>