ewx: (Default)
[personal profile] ewx
To: sgo-software-announce@greenend.org.uk
Subject: with-readline 0.1
Date: Sat, 26 Mar 2005 16:35:16 +0000

with-readline version 0.1 is now released.

with-readline is a small program that allows the GNU Readline library
to be used with arbitrary programs, without having to recompile those
programs.  It is useful for improving the user interface of simple
terminal-based programs which for whatever reason have not been
modified to use Readline themselves.

This is the first release of with-readline.  Flaws surely remain.

See this URL for more information:

http://www.greenend.org.uk/rjk/2005/withreadline.html

ttfn/rjk

(no subject)

Date: 2005-03-26 04:45 pm (UTC)
From: [identity profile] nunfetishist.livejournal.com
I want your babies.

(no subject)

Date: 2005-03-26 05:07 pm (UTC)
From: [identity profile] sbp.livejournal.com
Now that's a good idea.

(no subject)

Date: 2005-03-29 01:22 am (UTC)
gerald_duck: (Duckula)
From: [personal profile] gerald_duck
"It is installed setuid to root on platforms that use BSD-style pseudo-terminal handling."

Ulp!

(no subject)

Date: 2005-03-29 08:20 am (UTC)
ext_8103: (Default)
From: [identity profile] ewx.livejournal.com
Don't use a platform with BSD-style pseudo-terminal handling, then.

(no subject)

Date: 2005-03-29 11:02 am (UTC)
ext_8103: (Default)
From: [identity profile] ewx.livejournal.com

...put less bluntly; it's unfortunate that (some? all?) BSDs apparently still require programs that want to securely acquire a pseudo-terminal to be setuid in 2005, but I feel more able to get my own code right[1] than to personally fix a clutch of loosely related operating systems, wait for everyone to upgrade, etc.

[1] though of course bug reports about that bit are welcome, if there's anything wrong with it - feeling competent is one thing, hubris would be quite another.

It's not as if the alternative interface is a new idea any more (it's even at least somewhat standardized these days).

(no subject)

Date: 2005-03-29 02:42 pm (UTC)
From: [identity profile] imc.livejournal.com
it's unfortunate that (some? all?) BSDs apparently still require programs that want to securely acquire a pseudo-terminal to be setuid in 2005

I'm pretty sure FreeBSD 5.x doesn't (though possibly 4.x does). I don't really know many BSD operating systems these days.

Presumably, then, this is a utility which inputs lines with GNU readline and spits them out to the target program?

(no subject)

Date: 2005-03-29 02:55 pm (UTC)
ext_8103: (Default)
From: [identity profile] ewx.livejournal.com

The man page (http://www.freebsd.org/cgi/man.cgi?query=openpty&apropos=0&sektion=0&manpath=FreeBSD+5.3-RELEASE+and+Ports&format=html) says you still need to be root, and the source (http://www.freebsd.org/cgi/cvsweb.cgi/src/lib/libutil/pty.c?rev=1.15&content-type=text/x-cvsweb-markup) agrees. However, I don't have a 5.x system to try it out on. If you do you're welcome to experiment.

You're right about what with-readline does. It wants a pty between itself and the target so that targets which distinguish between interactive and noninteractive modes adopt the former; otherwise just a pipe might have been sufficient.

(no subject)

Date: 2005-03-29 03:06 pm (UTC)
From: [identity profile] imc.livejournal.com
Ah, but look up posix_openpt on the same web site. No, I don't have a live FreeBSD system at the moment.

(no subject)

Date: 2005-03-29 03:16 pm (UTC)
ext_8103: (Default)
From: [identity profile] ewx.livejournal.com
I'm baffled as to why they didn't fix openpty then.

(no subject)

Date: 2005-03-30 11:46 am (UTC)
From: [identity profile] nslm.livejournal.com
This rocks!

and it beats the hell out of using Oracle's POS SQLPlus without it.

November 2025

S M T W T F S
      1
2345678
91011121314 15
1617 181920 2122
23242526272829
30      

Most Popular Tags

Expand Cut Tags

No cut tags