Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #16401

Re: Backspace echoed incorrectly with TERM=garbage

Path csiph.com!xmission!news.snarked.org!news.linkpendium.com!news.linkpendium.com!panix!usenet.stanford.edu!not-for-mail
From Dennis Williamson <dennistwilliamson@gmail.com>
Newsgroups gnu.bash.bug
Subject Re: Backspace echoed incorrectly with TERM=garbage
Date Wed, 17 Jun 2020 17:18:40 -0500
Lines 55
Approved bug-bash@gnu.org
Message-ID <mailman.2083.1592432336.2541.bug-bash@gnu.org> (permalink)
References <E1jlfdk-0006B3-GQ@lists.gnu.org> <CANaoh6KQf2kmZ7VC_0kV==-6ftDmQaUZs2HQF2kRzgnG5w2P-Q@mail.gmail.com>
NNTP-Posting-Host lists.gnu.org
Mime-Version 1.0
Content-Type text/plain; charset="UTF-8"
X-Trace usenet.stanford.edu 1592432337 27790 209.51.188.17 (17 Jun 2020 22:18:57 GMT)
X-Complaints-To action@cs.stanford.edu
Cc bug-bash <bug-bash@gnu.org>
To bryanh@giraffe-data.com
Envelope-to bug-bash@gnu.org
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=SA68FXFDVCuaayHmXEL3RQlMTJzhechiiJgfpG8TKPo=; b=MAKKQaSR6aoYTJFjQjOeEUpPjTxd+3B52kG8oy3/X/LBymHL0ssY2G6ReTPpLOrxFa OGYgnEOwAMDKbhJsWTChQyKshWNuQIJEerIQZ7I2/h1A9XGLlXNI4Mm6QN0VHxQoeA8l emqnNA8NAbgFKJ0N3pcMcWkykQmTqa7Mm5aKMRySregQxYYi++T2Luj5N57G1ACkwRUo y/jw0ldIsEx2MSFjj3fr7LgxorUAiwxjVQiv/Dix0fEpDQnD56UuyVKHypuyhVARgTWE OXe7QDz5arnVMqwOB9IAvL5BqGESmVB7I2WuMdtYrI0eaDHdnyoRINaC2X0zBSXaF4Lx BaSA==
X-Google-DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=SA68FXFDVCuaayHmXEL3RQlMTJzhechiiJgfpG8TKPo=; b=UPR+0yAegLvpUMgLwMkLVpHrt8ffu5G83TkDmFX+DudVufsuwD5BwF89hABGFXnwQj b4H2u+b1Q8gfA/Ozq8r640CAfpSH4vBDq9pBbQwG/PzyeS1F8q59Ik+y0B1e9KMMIdk4 knu4puK/ePq1JrKdNqRZz0VTG6/aPdMb+hz2ua1dEsDPyjUuZoQGjA15nqFiUyW7mAzb 3RERjf4bEV2KUeW5dLCf793g8fi3ITs9obRU6Lk12+na1IZqmLT9DSCQtAfm2jKrZcNI 8R26cGERlsDKUIqhOG7MoGxaqpvSZoqBsy3o/EKcfIXRszDJyRI+4BpQp0ykx7T4j9pz 7Pbg==
X-Gm-Message-State AOAM532HGz/BuFug45aLF18kbLREKMf1ZQFVlEOKMFyZp/k+bL8v9ILi oDcImxlEkJaOIOJOE21+Huo9bxL+QBw77U75NoZB
X-Google-Smtp-Source ABdhPJyzWv+mX2sZmJEOLzQjXVheuHpJBxWa0KSog6V28Pe2CwDc6k00v+xz78gmNyxRukYtMaTG4Hg1VcsQpNFlcrI=
X-Received by 2002:adf:ff8a:: with SMTP id j10mr1275107wrr.405.1592432330186; Wed, 17 Jun 2020 15:18:50 -0700 (PDT)
In-Reply-To <E1jlfdk-0006B3-GQ@lists.gnu.org>
Received-SPF pass client-ip=2a00:1450:4864:20::431; envelope-from=dennistwilliamson@gmail.com; helo=mail-wr1-x431.google.com
X-detected-operating-system by eggs.gnu.org: No matching host in p0f cache. That's all we know.
X-Spam_score_int -20
X-Spam_score -2.1
X-Spam_bar --
X-Spam_report (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN
X-Spam_action no action
X-Content-Filtered-By Mailman/MimeDel 2.1.23
X-BeenThere bug-bash@gnu.org
X-Mailman-Version 2.1.23
Precedence list
List-Id Bug reports for the GNU Bourne Again SHell <bug-bash.gnu.org>
List-Unsubscribe <https://lists.gnu.org/mailman/options/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=unsubscribe>
List-Archive <https://lists.gnu.org/archive/html/bug-bash>
List-Post <mailto:bug-bash@gnu.org>
List-Help <mailto:bug-bash-request@gnu.org?subject=help>
List-Subscribe <https://lists.gnu.org/mailman/listinfo/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=subscribe>
X-Mailman-Original-Message-ID <CANaoh6KQf2kmZ7VC_0kV==-6ftDmQaUZs2HQF2kRzgnG5w2P-Q@mail.gmail.com>
X-Mailman-Original-References <E1jlfdk-0006B3-GQ@lists.gnu.org>
Xref csiph.com gnu.bash.bug:16401

Show key headers only | View raw


On Wed, Jun 17, 2020, 5:07 PM <bryanh@giraffe-data.com> wrote:

> Configuration Information [Automatically generated, do not change]:
> Machine: x86_64
> OS: linux-gnu
> Compiler: gcc
> Compilation CFLAGS: -g -O2
> -fdebug-prefix-map=/build/bash-2bxm7h/bash-5.0=. -fstack-protector-strong
> -Wformat -Werror=format-security -Wall -Wno-parentheses -Wno-format-security
> uname output: Linux rhino.giraffe-data.com 4.19.0-9-amd64 #1 SMP Debian
> 4.19.118-2+deb10u1 (2020-06-07) x86_64 GNU/Linux
> Machine Type: x86_64-pc-linux-gnu
>
> Bash Version: 5.0
> Patch Level: 3
> Release Status: release
>
> Description:
>
>   With TERM environment variable set to an undefined terminal type, Bash
>   echoes a backspace as a space; I expect it to echo as a backspace
> (ctl-h).
>   It edits the line properly; it just isn't displayed correctly.
>
>   Other line editing functions have the same problem.
>
>   Setting TERM from the Bash prompt (to anything) puts things back to
> normal.
>
>   It worked (Backspace echoes as a ctl-H backspace character) in an earlier
>   version of Bash (don't know which one), but not in 5.0.3(1) from Debian
> or
>   5.1 from ftp.gnu.org.
>
> Repeat-By:
>
>   $ TERM=nosuchterm bash --norc
>
>   At the prompt, type the 7 keystrokes
>
>     l s q q BS BS CR
>
>   It echoes
>
>     l s q q SP SP CR LF
>
>   and performs an 'ls' command, showing that the line was properly edited.
>
>


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?

Back to gnu.bash.bug | Previous | Next | Find similar


Thread

Re: Backspace echoed incorrectly with TERM=garbage Dennis Williamson <dennistwilliamson@gmail.com> - 2020-06-17 17:18 -0500

csiph-web