| От | Tom Lane |
|---|---|
| Тема | Re: unused_oids script is broken with bsd sed |
| Дата | |
| Msg-id | 22909.1524752870@sss.pgh.pa.us обсуждение |
| Ответ на | Re: unused_oids script is broken with bsd sed (Tom Lane <tgl@sss.pgh.pa.us>) |
| Список | pgsql-hackers |
I wrote: > Andreas Karlsson <andreas@proxel.se> writes: >> What about using FindBin (http://perldoc.perl.org/FindBin.html)? > A quick check suggests that that's present in the core perl > distribution pretty far back, so I think it'll work. > Question is, is it any better than John's "dirname(__FILE__)" > solution? I experimented a bit, and found that actually what we seem to need is FindBin::RealBin. That's the only one of these solutions that gives the right answer if someone's put a symlink to unused_oids or duplicate_oids into their PATH --- the other ones give you the directory containing the symlink. Now, maybe that would be an uncommon usage, but it hardly seems out of the question. regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера