From mboxrd@z Thu Jan 1 00:00:00 1970 From: Raghava Raju Subject: Re: newbie Date: Mon, 19 Aug 2002 14:51:45 -0700 (PDT) Sender: linux-admin-owner@vger.kernel.org Message-ID: <20020819215145.90232.qmail@web20007.mail.yahoo.com> References: <15713.19246.732177.545746@cerise.nosuchdomain.co.uk> Mime-Version: 1.0 Return-path: In-Reply-To: <15713.19246.732177.545746@cerise.nosuchdomain.co.uk> List-Id: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-admin@vger.kernel.org Cc: glynn.clements@virgin.net I don't think "bind -f file" when called from a script will work. Because when script exits keymap will be back to original one. Child process can't change environment of parent. --- Glynn Clements wrote: > > Raghava Raju wrote: > > > It seems to be that modifying .inputrc file is a > good > > option to change settings. But here I have to do > all > > this things from another bash script(say temp.sh), > > like open .inputrc,modify it, then ask readline to > > read inputrc file again. All this I have to do > from > > the temp.sh only. So I am unable to ask readline > to > > read inputrc file again from temp.sh. Because I > cannot > > give ctl-x,ctl-r from temp.sh. Is there any > command to > > have readline read inputrc again.?? > > 1. You can force an instance of bash to use a > different file by > setting the environment variable INPUTRC. > > 2. You can modify the bindings for a running bash > process using the > "bind" command. "bind -f " will read key > bindings from a > file. > > -- > Glynn Clements __________________________________________________ Do You Yahoo!? HotJobs - Search Thousands of New Jobs http://www.hotjobs.com