[postgis-devel] postgis_restore.pl

strk at refractions.net strk at refractions.net
Tue Mar 29 04:53:21 PST 2005


Alex, the '!' fix on utils/postgis_restore.pl actually broke
it (at least on one of my systems).

This is the test script:

-----8<-------------------------
#!/bin/sh

eval "exec perl -w $0 $@"
        if(0);

print "hello\n";
-----8<-------------------------

With  the ``!'':

$ ./test.pl
/bin/sh: -w: invalid option

Without the ``!'':

$ ./test.pl
hello

Do others have other results ?
I'd drop the ``!'' as it was in all precedent versions.

--strk;


On Fri, Mar 25, 2005 at 03:50:46PM +0100, strk at refractions.net wrote:
> On Fri, Mar 25, 2005 at 04:12:47PM +0200, alex bodnaru wrote:
> > hello strk,
> > 
> > as you know, debian packaging for postgis, and an alternative package
> > for geos, to work in woody, has been recently finnished.
> > 
> > due to our cooperation, all general purpose improvements to the code and
> > makefiles have been made on the main code base, while only debian
> > specific, or distribution related files are being distribute as the
> > debian diff to the original sources.
> > 
> > i wish to ask you to fix only one open issue on postgis: the file
> > utils/postgis_restore.pl is a shell script, thus might better end
> > in .sh, and it's first line misses the ! prefix to /bin/sh.
> 
> It is actually a perl script, using the shell to find perl
> executable. I've fixed the missing ! prefix.
> 
> --strk;
> 
> > regarding small geos issue, i will first check on woody.
> > 
> > best regards,
> > 
> > alex



More information about the postgis-devel mailing list