I set and exported
$LESSHISTSIZE but if I perform a search in one
less session, close, reopen it and try to repeat my last search I get "No previous regular expression (press RETURN)".
It works as expected in Ubuntu 14.04 but not in Fedora release 7. Any suggestion?
It's writing to
$LESSHISTSIZE. I get the same text written to the history file on both Ubuntu and Fedora. Below I started with an empty history file and then executed
cal | less. I searched for "xxx" while in
less. But when I exit and rerun the
less command it gives me the error message if try to repeat the search with just the
$ cal | less $ ls -l $LESSHISTFILE -rw------- 1 cs cs 40 Aug 4 14:23 .lesshist $ cat $LESSHISTFILE .less-history-file: .search "xxx .shell $
Maybe it's because the version on Fedora is so old.
$ less --version less 394 Copyright (C) 1984-2005 Mark Nudelman