Bug#360778: [Pkg-nagios-devel] Bug#360778: nagios2:
/etc/init.d/restart does not start nagios
sean finney
seanius at debian.org
Tue Apr 4 21:35:44 UTC 2006
hey jim,
On Tue, Apr 04, 2006 at 05:02:21PM -0400, Jim Jensen wrote:
> I thought if that, but left it as [ -z "$?" -o "$?" == 0 ] just in case $? was
> not defined. I would guess that is impossible with bash, but I am not sure
> about other shells.
i think $? is fairly universal, for any /bin/sh implementation anyway.
> I am also not sure about "0" vs 0, my understanding is that the quotes are
> removed before the comparison, so it doesn't matter in this case.
it doesn't, but i find that it's good practice to quote everything
inside of [ ], and there's probably a bit of habit coming from
languages that do make such distinction.
> I am not sure about the = vs ==. == appears to work in bash, but I don't know
that's definitely a bashism (and probably a tcshism).
sean
-
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-nagios-devel/attachments/20060404/74b53dfd/attachment.pgp
More information about the Pkg-nagios-devel
mailing list