From: Eric Hodel Date: 2005-02-20T03:41:52+09:00 Subject: Re: [PATCH] add persistent history to irb --Apple-Mail-14--465206941 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed On 19 Feb 2005, at 10:36, David A. Black wrote: > Hi -- > > On Sun, 20 Feb 2005, Eric Hodel wrote: > >> On 19 Feb 2005, at 06:34, David A. Black wrote: >> >>> Hi -- >>> I've often wanted the up-arrow in irb to give me my history from the >>> previous session. Well, now it does :-) Patch follows, in the hope >>> that this (or equivalent) might make it into the real irb. >> >> How will this conflict with using the Readline powered history? >> >> http://rubygarden.org/ruby?Irb/TipsAndTricks > > Cool -- I hadn't seen that one before. > >> Perhaps the Readline-powered version and the simple version could be >> added to an irb/history.rb, and if Readline doesn't exist, fall back >> to the simpler version? > > I'm not sure what you mean by "Readline-powered" vs. "simple". Both > versions depend on the presence of Readline. I'm not sure how else > one would do it. Ah! I thought your version was Readline-free, because it made no explicit checks. (Not everybody has Readline ruby libraries installed.) -- Eric Hodel - drbrain@segment7.net - http://segment7.net FEC2 57F1 D465 EB15 5D6E 7C11 332A 551C 796C 9F04 --Apple-Mail-14--465206941 content-type: application/pgp-signature; x-mac-type=70674453; name=PGP.sig content-description: This is a digitally signed message part content-disposition: inline; filename=PGP.sig content-transfer-encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (Darwin) iD8DBQFCF4hgMypVHHlsnwQRAkWiAKDr7oTtJw8JP+tk6Z9bp+C7G99xrQCgllut 94asRIIvLZ7wkbQLVRgvqB0= =3yE2 -----END PGP SIGNATURE----- --Apple-Mail-14--465206941--