Skip to content

Instantly share code, notes, and snippets.

@bmink
bmink / gist:a7848eaa41a6d55fc7bc0b2db656f9a0
Last active March 19, 2025 02:04
readline on MacOS X
OS X does not come with readline, rather, it comes with libedit which is touted as being a readline-compatible replacement.
This may be true for basic usage, but advanced usage will run into compabitily problems.
For example, trying to build https://github.com/ulfalizer/readline-and-ncurses on Mac will complain about not finding some variables exported by readline.
Solution: brew install readline
Brew will not override OS X's readline (which is really libedit). Its output helpfully states:
--------------------