Article View: aus.computers.linux
Article #57859Re: using bind in .bashrc
From: Kent Tong
Date: Fri, 16 Aug 1996 00:00
Date: Fri, 16 Aug 1996 00:00
31 lines
1564 bytes
1564 bytes
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. --- Kent Tong Freeman Installer ==> http://www.netnet.net/users/freeman/
Technical Details
Message-ID:
<4v27mu$j76@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>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/16 Message-ID: <4v27mu$j76@metro.usyd.edu.au> X-Deja-AN: 174985505 distribution: inet references: <4v0siu$pqh@metro.usyd.edu.au> <4v1ddq$c31@goanna.cs.rmit.edu.au> organization: TipTec Development newsgroups: aus.computers.linux