Article View: aus.computers.linux
Article #57862Re: using bind in .bashrc
From: Kent Tong
Date: Sat, 17 Aug 1996 00:00
Date: Sat, 17 Aug 1996 00:00
45 lines
1971 bytes
1971 bytes
freemant@wr.com.au (Kent Tong) wrote: >wew@yallara.cs.rmit.edu.au (William Edward Webber) wrote: >>Kent Tong (freemant@wr.com.au) opined: >>: >>: I'm trying to use the built-in command bind to bind ^? (ie, del) >>: to the readline function delete-char. It works if I enter the >>: command directly. It doesn't work if I put it into .bashrc. I >>: can use "bind -q delete-char" in .bashrc to verify that it does >>: bind the key successfully in .bashrc but somehow the effect is >>: gone when .bashrc has been processed. Any idea why? >>: >>Are we talking XWindow or a VC here? >A bash running in an xterm in X Window. >>On my VCs, at least, the >>'delete' key produces a literal of '^[[3~'. Also note that the >>bindings you do for the shell mightn't work for programs the shell >>calls. >I just use the del key to edit the command line. As said in >the previous post, it works if the bind command is entered >directly but it doesn't if the command is put into .bashrc. >More exactly, it works when .bashrc is being processed but >the effect is gone afterwards. I've fixed the problem! It turns out that the problem only occurs when I am binding the del key probably due to some hidden interference coming from the tty. Once I add: stty erase ^H to free up the del key before the line: bind '"\C-?": delete-char' in .bashrc, the problem is eliminated. --- Kent Tong Freeman Installer ==> http://www.netnet.net/users/freeman/
Technical Details
Message-ID:
<4v4kjq$hl0@metro.usyd.edu.au>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<4v0siu$pqh@metro.usyd.edu.au> <4v1ddq$c31@goanna.cs.rmit.edu.au> <4v27mu$j76@metro.usyd.edu.au>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 102983,340287e4490ce5da X-Google-Attributes: gid102983,public From: freemant@wr.com.au (Kent Tong) Subject: Re: using bind in .bashrc Date: 1996/08/17 Message-ID: <4v4kjq$hl0@metro.usyd.edu.au> X-Deja-AN: 175262579 distribution: inet references: <4v0siu$pqh@metro.usyd.edu.au> <4v1ddq$c31@goanna.cs.rmit.edu.au> <4v27mu$j76@metro.usyd.edu.au> organization: TipTec Development newsgroups: aus.computers.linux