Re: psql's EDITOR behavior on Windows

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: psql's EDITOR behavior on Windows
Дата
Msg-id 4113.1576681876@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: psql's EDITOR behavior on Windows  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: psql's EDITOR behavior on Windows  (Pavlo Golub <pavlo.golub@cybertec.at>)
Список pgsql-hackers
I wrote:
> Pavlo Golub <pavlo.golub@cybertec.at> writes:
>> I cannot find the reason why EDITOR value on Windows is quoted.

> The comment you quoted explains it: apparently people expect
> paths-with-spaces to work in that value without any manual quoting.

Actually, after digging in the git history and archives, the current
behavior seems to trace back to a discussion on pgsql-hackers on
2004-11-15.  The thread linkage in the archives seems rather incomplete,
but it boiled down to this:

https://www.postgresql.org/message-id/9045.1100539151%40sss.pgh.pa.us

ie, the argument that people could handle space-containing paths by
putting double quotes into the environment variable's value is just wrong.
Possibly Microsoft fixed that in the fifteen years since, but I'd want to
see some proof.

            regards, tom lane



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: psql's EDITOR behavior on Windows
Следующее
От: Simon Riggs
Дата:
Сообщение: Re: Read Uncommitted