When scripting, which is better?

Поиск
Список
Период
Сортировка
От Justin Clift
Тема When scripting, which is better?
Дата
Msg-id 3BB871A1.948C5AA1@postgresql.org
обсуждение исходный текст
Ответы Re: When scripting, which is better?  (Adrian Phillips <adrianp@powertech.no>)
Re: When scripting, which is better?  (Bruce Momjian <pgman@candle.pha.pa.us>)
Re: When scripting, which is better?  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-hackers
Hi all,

Reading through the script files again, there seems to be several
different methods of doing the same thing :

i.e.  if [ -x "$self_path/postmaster" ] && [ -x "$self_path/psql" ];
then

or

if [[ -x "$self_path/postmaster" && -x "$self_path/psql" ]]; then




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

or

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

or

if [ "$foo" ]; then


-- 
"My grandfather once told me that there are two kinds of people: those
who work and those who take the credit. He told me to try to be in the
first group; there was less competition there."    - Indira Gandhi



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

Предыдущее
От: Oleg Bartunov
Дата:
Сообщение: cvs problem
Следующее
От: "Marc G. Fournier"
Дата:
Сообщение: Re: Preparation for Beta