Only attempt using readline for input in bash shells

ksh and zsh do not support readline with read.

Unfortunately, this if block cannot be extracted to another function, or
the variable created by read goes out of scope before it can be used.