On 9/8/14, 4:17 AM, Jan Rome wrote: > Hello, > > I'd like to report an obscure bug I came across in pfsense which runs on > top of FreeBSD. > > If I run a bash script in which I have > > read -r -n1 -p "prompt: " > > and instead of providing input, i ctrl-c the script, > > the ash shell doesn't recover the terminal properly; backspace echos ^? and > the only way to delete characters is to hold shift and press backspace. > Also, if I use the -s switch for the read command in the bash script, the > problem gets even worse with the cursor not moving anymore as I type and > the text I type not being visible at all.
Thanks for the report. This will be fixed in the next release of bash. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, ITS, CWRU c...@case.edu http://cnswww.cns.cwru.edu/~chet/