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

[no subject]



-----Original Message-----
From: Geoffrey <esoteric at 3times25.net>
Sent: Feb 18, 2005 8:07 AM
To: Atlanta Linux Enthusiasts <ale at ale.org>
Subject: Re: [ale] Bash scripting question #2

Geoffrey wrote:

> That won't work, that's why I used the '-o' syntax in an earlier post. 
> You can do it this way:
> 
> if [ -f foo ] || [ -f bar ]....
> 
> But that's more typing.. :)

Just tested the following in bash, which was originally a ksh construct:

if [[ -f foo || -f bar ]]; then ....

And it works in bash as well.

-- 
Until later, Geoffrey
_______________________________________________
Ale mailing list
Ale at ale.org
<a  rel="nofollow" href="http://www.ale.org/mailman/listinfo/ale";>http://www.ale.org/mailman/listinfo/ale</a>


No sig.


</pre>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<hr>
<ul><li><strong>Follow-Ups</strong>:
<ul>
<li><strong><a name="00709" href="msg00709.html">[ale] Bash scripting question #2</a></strong>
<ul><li><em>From:</em> esoteric at 3times25.net (Geoffrey)</li></ul></li>
</ul></li></ul>
<!--X-Follow-Ups-End-->
<!--X-References-->
<!--X-References-End-->
<!--X-BotPNI-->
<ul>
<li>Prev by Date:
<strong><a href="msg00705.html">[ale] Bash scripting question #2</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg00707.html">[ale] Bash scripting question #2</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg00705.html">[ale] Bash scripting question #2</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg00709.html">[ale] Bash scripting question #2</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#00706"><strong>Date</strong></a></li>
<li><a href="threads.html#00706"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>

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