Re: [PATCH] Fix missing argument handling in psql getopt

Поиск
Список
Период
Сортировка
От Quentin Rameau
Тема Re: [PATCH] Fix missing argument handling in psql getopt
Дата
Msg-id 20190825212136.04b56ac3@fifth.space
обсуждение исходный текст
Ответ на Re: [PATCH] Fix missing argument handling in psql getopt  (Quentin Rameau <quinq@fifth.space>)
Список pgsql-hackers
> Another better way, I think, to fix this is to check for optopt
> instead, which would be set to the option which caused the error, which
> if empty means there isn't an error.
> 
> Patch attached.

Actually OpenBSD seems to set optopt to '?' by default, so the updated
attached patch ensure we start with an empty optopt.

Вложения

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Outputting Standard SQL
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [PATCH] Fix missing argument handling in psql getopt