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
-
signature.asc
Description: Digital signature

