can 'test -z ""' be false?

From: the_googlemail (_at_(the_googlemail).com)
Date: 04/25/05


Date: Sun, 24 Apr 2005 23:31:06 -0400

I have tried to install Qterm(requires Qt 3.1+) on my fedora 3C and fail
during the configure process due to that it cannot found my Qt library,
though I have supplied the correct path everywhere. However, after I
change part of the configure file as below. However, I am not sure about
the reason and hope some one can tell me. Specifically, what confused me
is that how can 'test -z "" ' produce a false? Should it always be true?
(I am a newbie to bash......)

Many thanks.
----------------------------------------------------
if test -z ""; then
#--------------V---I just changed these "2"s into "3".
   kde_qtver=2
   kde_qtsubver=2
else
   kde_qtsubver=`echo "" | sed -e 's#[0-9]\+\.\([0-9]\+\).*#\1#'`
   # following is the check if subversion isnīt found in passed argument
   if test "$kde_qtsubver" = ""; then
     kde_qtsubver=1
   fi
   kde_qtver=`echo "" | sed -e 's#^\([0-9]\+\)\..*#\1#'`
   if test "$kde_qtver" = "1"; then
     kde_qtsubver=42
   fi
fi
---------------

p.s. I know there is a bash group....but really few people there....



Relevant Pages

  • Re: fedora 3
    ... Fedora 3 really is screwed. ... only get it to install on one machine (and he just managed even that - all ... > so I perform media checks and they all fail. ...
    (comp.os.linux.networking)
  • Re: Fedora Install Fails copying install image during install. How to debug?
    ... > following specifying exactly which packages I want to install. ... > Fedora Rescue mode or do I need to make a Knoppix CD? ... > image copy would fail. ... The SWAP partition size is traditionally meant to be double the amount ...
    (linux.redhat)
  • Re: Newby Problem
    ... > I have installed Fedora core 4 on one of my machines and all seems well ... On every package that I select I receive ... Even though they all install and work fine it is a real ... >> Yes, when I copy it on my PC, it opens properly ...
    (Fedora)
  • Re: fedora-list Digest, Vol 54, Issue 170
    ... I've never tried to install it with a disk ... Fedora 9 asking for disc 1 on dvd install ... Re: Linux Outlaws (Armin) ... Fedora 9 asking for disc 1 on dvd install ...
    (Fedora)
  • unsubscribe
    ... A question about procmailrc (jdow) ... Fedora Core 2 GNU/Linux on Athlon with kernel 2.6.11-1.35_FC2smp ... Subject: Generic Install ... my CPU is an Intel Pentium 4 D. It's a newer Dual Core Pentium ...
    (Fedora)