Lars Gullik Bjønnes wrote: > > the test will be rewritten as: > > if test -z ; then > > if GNUM4 is not set or is set to empty var. > > imho the best way to solve is the x$GNUM != xyes trick, since that > requires the least of the test features.
Don't use "yes", since GNUM4 is either emtpy, or contains the GNUM4 program name ("m4", "gm4", etc.). So better is, probably, if test x$GNUM4 = x ; then Rob. PS: I didn't know these problems with test and empty variables. Thanks for pointing this out to me!