[postgis-devel] Building the extension on Solaris/amd64
Sandro Santilli
strk at keybit.net
Tue May 21 06:08:28 PDT 2013
On Tue, May 21, 2013 at 12:58:48PM +0000, Martin Spott wrote:
> Sandro Santilli wrote:
> > On Tue, May 21, 2013 at 11:17:42AM +0000, Martin Spott wrote:
> >> While we're at it:
> >>
> >> --- postgis_restore.pl~ Tue May 21 04:11:45 2013
> >> +++ postgis_restore.pl Tue May 21 04:11:45 2013
> >> @@ -58,7 +58,7 @@
> >> my $SRID_MAXIMUM = 999999;
> >> my $SRID_USER_MAXIMUM = 998999;
> >>
> >> -while (@ARGV && $ARGV[0] =~ /-/) {
> >> +if (@ARGV && $ARGV[0] =~ /-/) {
> >> if ( $ARGV[0] eq '-v' ) {
> >> $DEBUG = 1;
> >> shift(@ARGV);
> >
> > That would only process the first option, rather than all of them, no ?
>
> "while" is a loop which requires some sort of input to work, but the
> clause in braces doesn't return any input. Therefore, as shipped in
> SVN, it waits forever.
This works for me:
perl -e 'while (@ARGV && $ARGV[0] =~ /-/) {
print shift(@ARGV),"\n"; }
' -- -a -b -c
doesn't it work there ?
This is perl 5, version 14, subversion 2 (v5.14.2)
built for x86_64-linux-gnu-thread-multi
--strk;
More information about the postgis-devel
mailing list