Re: pg_ctl failure with older Bourne shells (use ${1:+"$@"})

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: pg_ctl failure with older Bourne shells (use ${1:+"$@"})
Дата
Msg-id 200207191532.g6JFWf311237@candle.pha.pa.us
обсуждение исходный текст
Ответ на Re: pg_ctl failure with older Bourne shells (use ${1:+"$@"})  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
Tom Lane wrote:
> > We only use "$@" in a few places so I am applying this patch.
>
> Could you check for other scripts where the same thing may have snuck
> in?

Yes, I checked, and I saw pgaccess using it too.  I sent them a patch.

>
> BTW, O'Reilly's "Unix Power Tools" recommends
>     ${1+"$@"}
> as the most portable replacement for "$@".  Mike's version has :+
> which is not the same.  My man page for the Bourne shell says

Changed.

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: pg_ctl failure with older Bourne shells (use ${1:+"$@"})
Следующее
От: "Niranjan Shivaratri"
Дата:
Сообщение: Postgres throwing exception for int8 datatype.