Skip site navigation (1) Skip section navigation (2)

Re: When scripting, which is better?

From: Adrian Phillips <adrianp(at)powertech(dot)no>
To: Justin Clift <justin(at)postgresql(dot)org>
Cc: PostgreSQL Hackers Mailing List <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: When scripting, which is better?
Date: 2001-10-01 15:15:14
Message-ID: 87d747tmrh.fsf@grannyogg.localnet (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
>>>>> "Justin" == Justin Clift <justin(at)postgresql(dot)org> writes:

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

    Justin> or

    Justin> if [ "$op" = "" ]; then

    Justin> or

    Justin> if [ "$foo" ]; then

I'm not the slightest bit a shell expert, but why not :-

if [ -z "$foo" ]; then

Is this POSIX/SUS2/whatever ?


Adrian Phillips

Your mouse has moved.
Windows NT must be restarted for the change to take effect.
Reboot now?  [OK]

In response to

pgsql-hackers by date

Next:From: Bruce MomjianDate: 2001-10-01 15:29:13
Subject: Re: developer's faq
Previous:From: Ross J. ReedstromDate: 2001-10-01 15:02:15
Subject: Re: [HACKERS] [BUGS] PostgreSQL / PHP Overrun Error

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group