On 11/9/14 10:25 AM, Ryo Tomidokoro wrote:
> Hi,
> 
> I am trying to use rl_bind_key with a sample code below.
> When I run the compiled binary and hit semi-colon key, it should print
> [semi colon] instead of [;]. 
> But it prints [;].
> 
> This sample code properly works when I complied it on Cent-OS6.5 (Readline
> 6.0.4).
> 
> Is this a bug? Or Is there any way to make it works?
> 
> 
> [The version number and release status of Readline]
> 6.3.6-release (installed via homebrew)
> 
> [The machine and OS that it is running on]
> Mac Book Air 2012 Mid
> Mac OSX 10.9.5 (Mavericks)
> 
> [A list of the compilation flags or the contents of `config.h', if 
> appropriate]
> N/A
> 
> [a description of the bug]
> rl_bind_key dose not work when compiled on Mac OSX.


You're probably not getting the homebrew version of readline you just
installed unless you use -L to specify the homebrew installation lib
directory.

Apple ships a crippled version of "readline" they derived from BSD
editline in /usr/lib, and that's what you get with -lreadline.

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    [email protected]    http://cnswww.cns.cwru.edu/~chet/

_______________________________________________
Bug-readline mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-readline

Reply via email to