Path: csiph.com!goblin3!goblin1!goblin.stu.neva.ru!usenet.stanford.edu!not-for-mail From: Bryan Henderson Newsgroups: gnu.bash.bug Subject: Re: Backspace echoed incorrectly with TERM=garbage Date: 18 Jun 2020 20:53:57 +0000 Lines: 20 Approved: bug-bash@gnu.org Message-ID: References: <75996.bryanh@giraffe-data.com> NNTP-Posting-Host: lists.gnu.org X-Trace: usenet.stanford.edu 1592515820 24346 209.51.188.17 (18 Jun 2020 21:30:20 GMT) X-Complaints-To: action@cs.stanford.edu Cc: bug-bash@gnu.org To: Dennis Williamson Envelope-to: bug-bash@gnu.org In-reply-to: (dennistwilliamson@gmail.com) Received-SPF: pass client-ip=174.143.232.82; envelope-from=bryanh@giraffe-data.com; helo=oldrhino.giraffe-data.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/06/18 17:30:13 X-ACL-Warn: Detected OS = Linux 3.x [generic] [fuzzy] X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: bug-bash@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Bug reports for the GNU Bourne Again SHell List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: <75996.bryanh@giraffe-data.com> X-Mailman-Original-References: Xref: csiph.com gnu.bash.bug:16406 > I imagine that depends on your terminal and your stty settings. On MacOS with > Bash 5 in Terminal.app what you describe doesn't happen for me. What terminal > are you using? What is the output of stty -a with respect to erase? What do > you get in that setup when you press Ctrl-V then Backspace? Thanks for trying to reproduce it. I see this with an X.org xterm under Linux and a Linux virtual console, both through SSH (Openssh), and Putty in Windows, via Putty's SSH. To simplify things, I set my erase key to "q" (stty erase q). ctl-V q confirms terminal sends q when I type it. Behavior is the same - q functions as backspace, gets echoed as space. In Bash 4, it gets echoed as backspace. I used 'script' to verify that the terminal is receiving an ASCII space (0x20) character. -- Bryan Henderson San Jose, California