| От | Peter Eisentraut |
|---|---|
| Тема | Re: regression script/makefile exit failure |
| Дата | |
| Msg-id | 200412112115.19424.peter_e@gmx.net обсуждение исходный текст |
| Ответ на | Re: regression script/makefile exit failure (Andrew Dunstan <andrew@dunslane.net>) |
| Ответы |
Re: regression script/makefile exit failure
|
| Список | pgsql-hackers |
Andrew Dunstan wrote: > Further investigation has shown that the exit/trap idiom used in > pg_regress.sh is less than 100% portable. > > The following shell script has been seen to produce incorrect output > on both Cygwin and FreeBSD: > > > #!/bin/sh > > trap ' > st=$? > echo status = $st > exit $st > ' 0 > > (exit 9); exit I seem to recall that there is a bug in the FreeBSD shell with line breaks in traps. Try changing the above to trap 'st=$?; echo status = $st; exit $st' 0 -- Peter Eisentraut http://developer.postgresql.org/~petere/
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера