| От | Peter Eisentraut |
|---|---|
| Тема | Command-line parsing in pg_ctl is not portable |
| Дата | |
| Msg-id | 200410191550.37098.peter_e@gmx.net обсуждение исходный текст |
| Ответы |
Re: Command-line parsing in pg_ctl is not portable
|
| Список | pgsql-hackers |
The command-line argument parsing in pg_ctl is not portable. This is the output on a glibc system: $ pg_ctl start stop pg_ctl: too many command-line arguments (first is "start") But: $ POSIXLY_CORRECT=1 pg_ctl start stop pg_ctl: too many command-line arguments (first is "stop") This is probably because GNU getopt rearranges the arguments, and since pg_ctl uses two while loops to try to allow non-option arguments before options, things may get reordered multiple times. Now this particular case is minor trouble, but I wonder in what other situations arguments will get reordered where the order does make a difference. -- Peter Eisentraut http://developer.postgresql.org/~petere/
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера