bash - Go back on line with left arrow when using read? -


i'm reading stdin read var. when type something, can't go in line pressing left arrow on keyboard. test[[d^[[d^[[d (three presses left arrow). how can solved?

seems question asked before, didn't results on suggestions , google-fu failed me.

the ability use arrow keys move cursor around within text you've entered provided the readline library. bash's read command doesn't use readline default, can tell providing -e option. add option read command.


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

.htaccess - ERR_TOO_MANY_REDIRECTS htaccess -