title: How to allow arrow keys in read command
body: <p>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 <code>^[[D</code> to the end. How can I fix that?</p>