Okay, so I have a #ShellScript with a basic read statement: read -p "Set Format ...

@pronounshe@lgbtqia.space

Okay, so I have a #ShellScript with a basic read statement:

read -p "Set Format : " form

I have for years just dealt with not being able to move the cursor back and forth if I make a typo in the input because doing so generates the strings ^[[C
and ^[[D.

Is there any way to allow moving the cursor normally as with a standard command line? I would suspect that it's something that needs to be set in .bashrc, because I can't seem to find it.

#Bash #Linux