Thread
:
Which test syntax to use?
View Single Post
Jan 4th, 2006, 12:55 PM
#
4
jim mcnamara
Hobbyist Programmer
Join Date: Jun 2005
Location: New Mexico
Posts: 228
Rep Power:
4
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
(
Toggle Plain Text
)
if [ $a -eq 0 -o $b -eq 0 ] ; then
if [ $a -eq 0 -o $b -eq 0 ] ; then
which does not require [[ ]]
jim mcnamara
View Public Profile
Find More Posts by jim mcnamara