probably won't use rw_cmd for now; use the GNU readline and history libraries.