From the readline module documentation, it mentions:
On MacOS X the readline module can be implemented using the libedit library instead of GNU readline. The configuration file for libedit is different from that of GNU readline.
Is it possible to use the readline library in /usr/lib/libreadline.dylib
for example, or even compiled with MacPorts or Homebrew?