Re: psql's EDITOR behavior on Windows

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Pavlo Golub <pavlo(dot)golub(at)cybertec(dot)at>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: psql's EDITOR behavior on Windows
Date: 2019-12-18 14:43:12
Message-ID: 2806.1576680192@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Pavlo Golub <pavlo(dot)golub(at)cybertec(dot)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.

> One may force quote env var if he wants to.

Given the lack of prior complaints, I'm not sure we should change
this to support an editor that can't be made to work without special
command line switches. We're likely to make more people unhappy
than happy ... especially if it's then impossible to set the variable
so that it works with both older and newer psql's.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2019-12-18 15:11:16 Re: psql's EDITOR behavior on Windows
Previous Message Hamlin, Garick L 2019-12-18 14:24:20 Re: Unix-domain socket support on Windows