[postgis-users] Re: ver 1.1.5 configure fails on Ubuntu
gdt at ir.bbn.com
Fri Nov 10 06:07:12 PST 2006
strk at refractions.net writes:
> On Thu, Nov 09, 2006 at 09:23:20PM -0500, Steven Johnson wrote:
>> Thanks for your response to my ./configure woes. I tried your suggestion and
>> these are the results:
>> test !-f "/usr/bin/geos-config" yields
>> test flex --version "/usr/bin/geos-config"
>> bash: test: --version: binary operator expected
> Ops.. it seems that the '!' char is interpreted as a seek in
> the history...
> Try replacing that with:
> if test -f "$variable"; then
> .... original code here ....
> (in configure.in)
>From the man page on NetBSD, it seems ! is legal (POSIX.2), but that
it has to be followed by a space.
It then works with NetBSD's /bin/sh, known for complying with POSIX.2
and not implementing bash extensions and thus a good test case:
$ test ! -f /etc/passwd || echo foo
More information about the postgis-users