Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!HUB.UCSB.EDU!bfox%vision From: bfox%vision@HUB.UCSB.EDU (Brian Fox) Newsgroups: gnu.bash.bug Subject: history bug, and suggestions Message-ID: <8911111759.AA21595@hub.ucsb.edu> Date: 11 Nov 89 17:59:11 GMT References: Sender: daemon@tut.cis.ohio-state.edu Reply-To: bfox%cornu@hub.ucsb.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 25 Posted-Date: 11 Nov 89 17:40:02 GMT Date: 11 Nov 89 17:40:02 GMT From: thewalt@PT.CS.CMU.EDU (Chris Thewalt) Organization: Dept. of Civil Engineering, Carnegie Mellon University, Sender: bug-bash-request@prep.ai.mit.edu First an apparent bug (1.04 on Microvax II, Ultrix 2.2). The !* history mechanism expands to the zero'th word if the previous line was a single word. It should expand to the null string in that case. Thanks, I have received this bug report, and fixed the relevant bug. Suggestions: 1) add a prompt string code similar to \w that just includes the basename of the current directory (the last part after the final /). \W does exactly that already. 2) provide a mechanism to rebind keys on the fly, .inputrc is nice but I would like to able to do this from the shell. C-x C-r re-reads the ~/.inputrc file. Clumsy, but possible. Brian Fox