Re: When scripting, which is better?

Поиск
Список
Период
Сортировка
От Adrian Phillips
Тема Re: When scripting, which is better?
Дата
Msg-id 87d747tmrh.fsf@grannyogg.localnet
обсуждение исходный текст
Ответ на When scripting, which is better?  (Justin Clift <justin@postgresql.org>)
Список pgsql-hackers
>>>>> "Justin" == Justin Clift <justin@postgresql.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 ?

Sincerely,

Adrian Phillips

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


В списке pgsql-hackers по дате отправления:

Предыдущее
От: "Ross J. Reedstrom"
Дата:
Сообщение: Re: [PHP] [BUGS] PostgreSQL / PHP Overrun Error
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: developer's faq