Just a Reminder That
Tags: computer-science, unix.
rlwrapis a wrapper that uses the GNU readline library to allow the editing of keyboard input for any other command. Input history is kept between invocations, separately for each command; history completion and search work as in bash and completion word lists can be specified on the command line.
So if you’ve ever run a REPL and hit the up arrow, expecting the previous
command to appear for editing, and instead generated a string of gibberish, you
rlwrap helpful. Just prefix the REPL command with
you’re off to the races:
$ rlwrap some_shoddy_repl >
I’ve noticed that this is often useful with SQL clients, which invariably seem to screw up readline bindings.
You might like these related articles: