I have a question regarding compound conditions in ksh: Do you enclose the
total condition in parenthesis or not?
Example:
if (( keep_ofil == 0 )) && [[ ! -z $ofil ]]; then
rm $ofil
fi
or
if ( (( keep_ofil == 0 )) && [[ ! -z $ofil ]] ); then
rm $ofil
fi
It seems to work both ways. Is there any difference in how these two cases
are handled by ksh?
Thanks for any answers.
+----------------------------------------------------------------------+
| Guenther Steinmetz Mail: Postfach 810247 81902 Muenchen |
| Quality Consultant Voice: (49) 89-9591-2892 |
| Digital Equipment GmbH Fax: (49) 89-9591-2575 |
+----------------------------------------------------------------------+