I need to accept user input within a shell script that can run both in BASH and ZSH. I'm accustomed to using readline in other languages, but this doesn't seem to be a viable option in shell scripting.
An example prompt might be:
Please enter the value> 1234_
How can I present a user with editable input that has a default value that can be edited (backspaced) that's compatible with both shells?