tobold.org

correct • elegant • free

△ comp.unix.shell △

◅ "grep"-ing in gzipped text-files

filesize -> variable ▻

autoconf always sets variable

In article <38984D55.5AC96318@cpan.org>, Alex Farber  <farber@cpan.org> wrote:
>test "x$with_shared"=xyes && models=shared

You are only giving test one argument.  In this case, it tests if that
argument is a non-empty string.  It doesn't look inside the string at
all.

You want this instead.

    test "x$with_shared" = xyes && models=shared

Tim.
--
Tim Goodwin   | "If you don't know what closures are, you probably don't
Leicester, UK | want to know what closures are." -- Larry Wall

Original headers:

From: tjg@star.le.ac.uk (Tim Goodwin)
Newsgroups: comp.unix.shell
Subject: Re: autoconf always sets variable
Date: 3 Feb 2000 12:42:00 -0000
Message-ID: <87bt3e$5d7$1@ltpcg.star.le.ac.uk>
References: <38984D55.5AC96318@cpan.org>

△ comp.unix.shell △

◅ "grep"-ing in gzipped text-files

filesize -> variable ▻