[postgis-devel] Building the extension on Solaris/amd64

Martin Spott Martin.Spott at mgras.net
Sat May 25 09:49:43 PDT 2013


Sandro Santilli wrote:

> This works for me:
> 
> perl -e 'while (@ARGV && $ARGV[0] =~ /-/) {
> print shift(@ARGV),"\n"; }
> ' -- -a -b -c
> 
> doesn't it work there ?

It does, but the use case is different. A "while" loop runs until it
hits a terminating condition.  In your example the terminating
condition is EOF.
But the respective while-loop in "postgis_restore.pl" doesn't meet an
EOF nor any other terminating condition.  After iterating the loop for
a first time (for example because "-v" was given), the dumpfile name
gets shifted into $ARGV[0] and the loop continues running endlessly, it
just doesn't execute the code block.

Cheers,
	Martin.
-- 
 Unix _IS_ user friendly - it's just selective about who its friends are !
--------------------------------------------------------------------------



More information about the postgis-devel mailing list