[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Terminal messed up after exiting bash

From: Chet Ramey
Subject: Re: Terminal messed up after exiting bash
Date: Wed, 10 Sep 2014 17:04:21 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.6.0

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.

``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/

reply via email to

[Prev in Thread] Current Thread [Next in Thread]