How to allow arrow keys in read command

Viewed 1956

I made a bash script to use sendmail to send emails. However, when it asks for input, whenever I try to use the arrow keys to correct a typo, instead of moving the cursor, it just adds ^[[D to the end. How can I fix that?

1 Answers
Related