[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-ha-dev
Subject:    Re: [Linux-ha-dev] pgsql in 2.0.8
From:       "Serge Dubrouski" <sergeyfd () gmail ! com>
Date:       2007-01-23 15:11:27
Message-ID: 868cbbaa0701230711u18da65ebl993d8f4ad1dc4344 () mail ! gmail ! com
[Download RAW message or body]

On 1/23/07, Andrew Beekhof <beekhof@gmail.com> wrote:
> On 1/23/07, Serge Dubrouski <sergeyfd@gmail.com> wrote:
> > Guys -
> >
> > I don't know who but somebody in the team doesn't like -z in shell
> > scripts. With each release somebody replaces:
>
> -z isnt portable on solaris from what i understand

Never had problems with -z on Solaris, but may be I'm missing something.

>
> >
> >  if [ -z $PGHOST ]
> >
> > with
> >
> > if [ "x" -eq "x$PGHOST" ]
> >
> > Unfortunately it's an error. It has to be if [ "x" = "x$PGHOST" ] for
> > the right syntax in shell. -eq is for numbers, not strings. So pgsql
> > is broken in 2.8
>
> i'll change it to "=" now
>

Thanks.
_______________________________________________________
Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic