Re: psql \e broken again

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Bort, Paul" <pbort(at)tmwsystems(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: psql \e broken again
Date: 2004-11-16 15:58:12
Message-ID: 23701.1100620692@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

"Bort, Paul" <pbort(at)tmwsystems(dot)com> writes:
> I like Kevin Brown's suggestion of writing out a temporary .txt file and
> 'executing' it. It will follow the principle of least suprise for Windows
> users.

Note that the current default behavior (assuming you've not set EDITOR)
is "vi foo.txt" which is quite unlikely to be helpful to a Windows user.
I'm not sure we need to do the "execute a textfile" bit, but at the very
least DEFAULT_EDITOR should probably be "notepad.exe" on Windows.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Zeugswetter Andreas DAZ SD 2004-11-16 16:41:40 Re: psql \e broken again
Previous Message Bort, Paul 2004-11-16 15:19:30 Re: psql \e broken again