rlwrap wraps another command giving it readline editing ability. This is useful for interactive programs like clojure which don't provide readline support. http://en.wikibooks.org/wiki/Clojure_Programming/Getting_Started#Enhancing_Clojure_REPL_with_rlwrap