>>>>> Kai Grossjohann writes: Kai> The function history-search-backward which I bound to M-p does exactly Kai> this. (Similar for M-n, history-search-forward.)
I must have been out of my mind :-( Sorry, of course the Bash 1.X history-search-{for,back}ward don't do this right. kai -- A large number of young women don't trust men with beards. (BFBS Radio)