Writing a bash script, and I want to get user input. Awesome,
read -p \"What directory should we save in? \" -e FOLDER
Except that what I\'
$ read -p "What directory should we save in? " -i "/home/user/default/" -e FOLDER
What directory should we save in? /home/user/default/
that should work, right?
You can wrap the command in rlwrap, which provides instant readline capabilities: http://utopia.knoware.nl/~hlub/rlwrap/#rlwrap
(rlwrap -P does what you want)
As far as a pure bash solution is concerned for the 3.2 line (which i am presuming you are using), I dont think its possible