I believe I get the same problem as this guy. I'm on AIX, with tcsh 6.12.00
After (probably) a bad logout, the history file exponentially grown, until the quota stopped it (and when the quota was hit, several others problems occurred with batch jobs that couldn't run because of that). The content of the history file was just:
9917 host: path > Use "logout" to logout.
repeated for ever and ever (~50 millions times, actually). Note that
host: path >
is actually the prompt (which I obfuscated a little bit to avoid spammers).
Now, there are two (possible separate) problems that happened:
- why that output went to the .history file (instead that -say- my screen when I exited)
- why the savehist limit was not enforced (it was 5000 so it should never reached 9917)
The only thing I can think is of a process whose stdout (or err) was redirected there, but this is really odd! Do you have any clue about this problem?
Unfortunately I cannot reproduce the problem at will, which would help debugging.
EDIT: yes this happened with a remote (ssh) login, done from a X terminal emulator in Linux (the remote machine is AIX, the local linux)
EDIT: the only thing I can think is a bug in tcsh, which, in case of something "bad" occurring to the tty, mistakenly use the .history file descriptor, which it was supposed to be open just to update the history. But is it the case? There isn't anything mentioned here