Newsgroups: comp.unix.shell Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!odin!chet From: chet@odin.INS.CWRU.Edu (Chet Ramey) Subject: Re: Variables and keybinding in bash Message-ID: <1991May31.132323.7260@usenet.ins.cwru.edu> Sender: news@usenet.ins.cwru.edu Nntp-Posting-Host: odin.ins.cwru.edu Reply-To: chet@po.CWRU.Edu Organization: Yoyodyne Propulsion Systems, Inc. References: <1991May31.114454.8523@cc.curtin.edu.au> Date: Fri, 31 May 91 13:23:23 GMT Lines: 33 $ Thanks to those helpful folks who recently pointed me at bash 1.05. $ I now have the thing successfully installed under Interactive 386/ix 2.0.2. $ (with only a moderate amount of cursing) You should get bash-1.08 and the accompanying patch #1 from prep.ai.mit.edu. The improvement over 1.05 is astonishing. $ -e 's/${userid}/^[[36m${userid}^[[0m/' $ -e 's/${todaydate}/^[[33m${todaydate}^[[0m/' " $ Variable substitution does not occur between single quotes in all Bourne- style shells. The variables would be expanded if you used double quotes, but I'm not sure that wouldn't break something else. $ 2) How is it possible to rebind the bash line-editing keys to be those my $ (unconfigurable) console produces? ie VT100-type sequences like $ ^[[A for up and ^[[B for down etc. $ Things like : $ Control-[[A: previous-history , or $ Meta-[A: previous-history $ in my .inputrc aren't working. I think they will work with 1.08. Chet -- ``You shoot John Sununu. Twice.'' Chet Ramey Internet: chet@po.CWRU.Edu Case Western Reserve University NeXT Mail: chet@macbeth.INS.CWRU.Edu