Re: configure on 1.5pre9, Solaris x86 2.6

Jeremy Brown (jeremy.brown@wilshire.com)
Thu, 27 Aug 1998 10:47:47 -0700


> I changed ! to test -z (guessed by myself ;), but I didn't change echo -n.
> 
> Have you any idea for this one ?

I think test -z is actually backwards for what we're doing. You see,
the original code is:

 echo -n "* Install afterstep binaries in (${bin_dir}): "
 read retval
 if ! test "${retval}" = "" ; then
  bin_dir=${retval}
 fi

What this says is, "Read a line. If it is not zero length, assign the
value
I read to bin_dir." This translates into:

 echo "* Install afterstep binaries in (${bin_dir}): "
 read retval
 if test -n "${retval}" ; then
  bin_dir=${retval}
 fi

Right? This is working for me. 'test -n' evaluates to true if the string
is not zero length; 'test -z' evaluates to true if the string *is* zero
length. Maybe you're doing '! test -z [blah]'? That would probably work
too. But it seems from the manpages that old, stupid shells don't like
too much ! stuff.

Should I do something with my patches for configure and configure.in?

Jeremy

--
   WWW:   http://www.afterstep.org/
   FTP:   ftp://ftp.afterstep.org/
   MAIL:  http://www.caldera.com/linuxcenter/forums/afterstep.html