| От | Tom Lane |
|---|---|
| Тема | Re: [PATCHES] psql 'none' as a HISTFILE special case |
| Дата | |
| Msg-id | 3147.1156527971@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: [PATCHES] psql 'none' as a HISTFILE special case ("Martin Atukunda" <matlads@gmail.com>) |
| Ответы |
Re: [PATCHES] psql 'none' as a HISTFILE special case
|
| Список | pgsql-hackers |
"Martin Atukunda" <matlads@gmail.com> writes:
> On 8/25/06, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> There's probably no way to get Apple's libedit to not try the fchmod,
>> so what do we want to do here? Maybe special-case the string
>> "/dev/null"?
> If this is OK, I can up with a patch that special cases /dev/null as a
> HISTFILE if libedit is found.
I was thinking of basically a one-liner addition to write_history
to skip the whole thing if strcmp(fname, DEVNULL) == 0. Should be
reasonably inoffensive on anyone's machine.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера