Re: More fixes for missing double quotes in the shell

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: More fixes for missing double quotes in the shell
Дата
Msg-id Pine.LNX.4.30.0109300025190.629-100000@peter.localdomain
обсуждение исходный текст
Ответ на Re: More fixes for missing double quotes in the shell scripts  (Justin <justin@postgresql.org>)
Ответы Re: More fixes for missing double quotes in the shell  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-patches
Justin writes:

> I agree it's not strictly necessary, but I thought I'd add them in to
> follow the generic "good programming practise" of always quoting
> variables in shell script tests.

In my purely personal opinion it's better to be aware of the possible
values of a variable than to blindly quote everything.  Somewhere you're
going to run into nested quote situations which cannot be done portably,
at which point you have to start doing that anyway.

--
Peter Eisentraut   peter_e@gmx.net   http://funkturm.homeip.net/~peter


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Problem with setlocale (found in libecpg) [accessing a memory location after freeing it]
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: Trailing semicolons in psql patch