There are some command line programs that take input from the user, but do not provide editing capabilities, like sh
(alias dash
), or nslookup
and others.
There is a way to force such applications to provide editing capabilities to correct the current line or recall previous lines?
Best Answer
There are at least three tool to obtain what is required, these are:
rlwrap
-- readline feature command line wrapperrlfe
-- a front-end using readline to "cook" input lines for other programsledit
-- line editor for interactive programsYou can use each of them simpy prepeding to command to wrap, as in
The first,
rlwrap
, seems the best, because the second make the line in bold, and the third fails to show the prompt withsh
, nevertheless it works.