[gnu.bash.bug] history bug, and suggestions

thewalt@RITZ.ce.cmu.edu (Chris Thewalt) (11/12/89)

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.

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 /).

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.

Chris (thewalt@ce.cmu.edu)
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Christopher Robin Thewalt		These opinions are not necessarily
thewalt@ce.cmu.edu			shared by my employer...
Carnegie Mellon University

bfox%vision@HUB.UCSB.EDU (Brian Fox) (11/12/89)

   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