SV: problem error in inwatch file
Jeffrey M. Vinocur
jeff at litech.org
Tue Dec 4 03:19:34 UTC 2007
On Mon, 3 Dec 2007, Gert Koefoed Andersen wrote:
> > > [: : intenger expression exspected
>
> if [ \( -z "${STATE}" -o "${STATE}" != "${LAB}" -o "${OK}" = y
> \) \
> -a "${VALUE}" "-${TST}" "${LIM}" ] ; then
> elif [ "${STATE}" = "${LAB}" -a \
> \( "${CMD}" = "throttle" -o "${CMD}" = pause \) -a \
> ! "${VALUE}" "-${TST}" "${LIM}" ] ; then
I'm not much of a shell programmer, but I imagine you might get this with
variables that aren't defined. So I poked around in the source trying to
figure this out, and honestly I can't see where in the script $STATE is
ever set to anything except an empty string.
I'm now very confused. Has anybody else looked at innwatch lately?
--
Jeffrey M. Vinocur
jeff at litech.org
More information about the inn-workers
mailing list