Re: When scripting, which is better?

From: "Ken Hirsch" <kenhirsch(at)myself(dot)com>
To: "Justin Clift" <justin(at)postgresql(dot)org>, "PostgreSQL Hackers Mailing List" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: When scripting, which is better?
Date: 2001-10-01 14:59:10
Message-ID: OE53oE1pbzE3zLEuPB00000779b@hotmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Justin Clift wrote:

> if [ x"$foo" = x"" ]; then

This is the safest way. It prevents problems when $foo begins with with a
"-"

I don't know about your first question, though.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Ross J. Reedstrom 2001-10-01 15:02:15 Re: [HACKERS] [BUGS] PostgreSQL / PHP Overrun Error
Previous Message Thomas Swan 2001-10-01 14:42:56 Re: Bulkloading using COPY - ignore duplicates?