bug-readline
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-readline] rl_bind_key does not work on Mac OSX


From: Chet Ramey
Subject: Re: [Bug-readline] rl_bind_key does not work on Mac OSX
Date: Sun, 09 Nov 2014 19:01:56 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.2.0

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    address@hidden    http://cnswww.cns.cwru.edu/~chet/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]