View Single Post
Old Jan 4th, 2006, 12:55 PM   #4
jim mcnamara
Hobbyist Programmer
 
Join Date: Jun 2005
Location: New Mexico
Posts: 228
Rep Power: 4 jim mcnamara is on a distinguished road
Quote:
Originally Posted by a thing
I've used single brackets with || and &&.
Depends on which shell you use - ksh requires it.

You can also use -o
if [ $a -eq 0 -o $b -eq 0 ] ; then
which does not require [[ ]]
jim mcnamara is offline   Reply With Quote