Re: psql & readline & win32 - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: psql & readline & win32
Date
Msg-id 200602131712.k1DHCVH23738@candle.pha.pa.us
Whole thread Raw
In response to Re: psql & readline & win32  ("Magnus Hagander" <mha@sollentuna.net>)
Responses Re: psql & readline & win32  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Magnus Hagander wrote:
> > Would the easiest solution be to make a patch to readline for 
> > Win32, and only allow Win32 to link to readline if that patch 
> > is in readline, and spit out a compile error if readline 
> > doesn't have that patch.
> 
> What would we patch it with? I don't think anybody has found a problem
> there, this is a separate file that you ship along with it.

Well, the problem is that it handles backslash incorrectly.  We could
patch that in the readline source rather than playing with a
configuaration file.

> > As far as the license, psql spits out a copyright notice as 
> > it starts. 
> > It would be a shame to have to mention GPL in there.
> 
> Even that may not be enough. This is the GPL we're talking about.

At that point, psql becomes GPL, no question.

> > Can we get any companies to fund a port of libedit to Win32?  
> 
> That would be nice. Takers?
> 
> 
> > What does readline have that Win32 native editing does not?
> 
> tab completion, for one. Some editing keys, IIRC. I thought history, but
> it does seem we have history workign on native :)

I think what we don't have is saving history between psql uses.

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
359-1001+  If your life is a hard drive,     |  13 Roberts Road +  Christ can be your backup.        |  Newtown Square,
Pennsylvania19073
 


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: FW: PGBuildfarm member snake Branch HEAD Status changed
Next
From: "Jim C. Nasby"
Date:
Subject: Re: Use cases