On 1/23/07, Andrew Beekhof <[EMAIL PROTECTED]> wrote:
On 1/23/07, Serge Dubrouski <[EMAIL PROTECTED]> 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: [email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/

Reply via email to