[IMP] Improve read's function behaviour in bash to permit user to use right/left arrow of the keyboard