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


Groups > gnu.bash.bug > #15678

No way to 'bind -x' symbolic character names

Path csiph.com!goblin1!goblin.stu.neva.ru!usenet.stanford.edu!not-for-mail
From Nikolaos Kakouros <nkak@kth.se>
Newsgroups gnu.bash.bug
Subject No way to 'bind -x' symbolic character names
Date Fri, 29 Nov 2019 16:39:17 +0000
Lines 17
Approved bug-bash@gnu.org
Message-ID <mailman.3080.1575045570.13325.bug-bash@gnu.org> (permalink)
References <1575045558200.80219@kth.se>
NNTP-Posting-Host lists.gnu.org
Mime-Version 1.0
Content-Type text/plain; charset="iso-8859-1"
Content-Transfer-Encoding quoted-printable
X-Trace usenet.stanford.edu 1575045571 2765 209.51.188.17 (29 Nov 2019 16:39:31 GMT)
X-Complaints-To action@cs.stanford.edu
To "bug-bash@gnu.org" <bug-bash@gnu.org>
Envelope-to bug-bash@gnu.org
X-Virus-Scanned by amavisd-new at kth.se
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=kth.se; s=default; t=1575045559; bh=h6U5Q1GqtcDxWS9uk5TOWcWIPFnGBFYn8PNeHYVIl8s=; h=From:To:Subject:Date; b=MuCv91shTl+9Xhs0hgDtbQKEG6WEYlBBek2qnMNUoar+vHdCFExysOmfDrmW7KLXs Ls0gtI8Go6szDdXkimy/r7mZjUai541/tYUhMCOcHON5K2tb2JwCF7IRkMzHH8yN4K KNSQlOMPRnEiRLmZZR4N7Q/OUT3Mz9Wbu3TmQoQA=
Thread-Topic No way to 'bind -x' symbolic character names
Thread-Index AQHVptDQym12DHLRj0uGnTUaWlmtkQ==
Accept-Language en-US, sv-SE
Content-Language en-US
X-MS-Has-Attach
X-MS-TNEF-Correlator
x-ms-exchange-messagesentrepresentingtype 1
x-ms-exchange-transport-fromentityheader Hosted
x-originating-ip [84.216.244.244]
X-detected-operating-system by eggs.gnu.org: GNU/Linux 3.x
X-Received-From 2001:6b0:1:1300:250:56ff:fea6:2de2
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 <1575045558200.80219@kth.se>
Xref csiph.com gnu.bash.bug:15678

Show key headers only | View raw


Using bash version:

GNU bash, version 5.0.11(1)-release (x86_64-pc-linux-gnu)


Trying to map Backspace to execute a function, I try to do:

bind -x '"Rubout": my_func'

This, as expected, binds the string 'Rubout' to the function. Omitting the double quotes makes bind fail. Escaping, like `\Rubout`, works neither.

This is important in the case of Backspace, as there is no (to my knowledge) other way to bind the backspace than using Rubout. Using Konsole as my terminal emulator, `C-v Backspace` prints `^?` which I haven't managed to use with bind.

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


Thread

No way to 'bind -x' symbolic character names Nikolaos Kakouros <nkak@kth.se> - 2019-11-29 16:39 +0000

csiph-web