Leonard Bradfield wrote: > In user mode ($>): > mount /cdrom > ... (do some stuff) > umount /cdrom > ... > ^r m > > Instead of finding "mount /cdrom" it finds "umount /cdrom" and > leaves the cursor blinking on the "m" of cdrom. > Hmmm.....
Your history contains both commands. One command is a substring of the other command. The search command bound to control-r is not anchored at the start of the line. Therefore it locates the substring in other commands. When using 'reverse-search-history' which is an incremental search feature you should at the point that you have been placed at the later command select control-r again and push to the next previous history item. In this case it would be ^r m ^r and you would be located on the desired history item. Bob _______________________________________________ Bug-bash mailing list Bug-bash@gnu.org http://lists.gnu.org/mailman/listinfo/bug-bash