Consider the following minimised Bash Script:
echo Enter your name: read NAME echo $NAME
Now if I run the script and enter a name and want
Thanks to Andreas and some due dilligence with a search engine, I was able to rewrite my script:
echo Enter your name: read -e NAME echo $NAME
Now navigating through the input with arrow keys, works like a expected.
Here you can learn more about the read builtin command.