I'm using this in my .bashrc since 2 years now, and never noticed any problem...until recently.
I noticed that the .bash_eternal_history, which was more than 40k lines, suddenly get truncated on new login, down to a couple hundreds lines.
I tried checking HISTSIZE and HISTFILESIZE but it was still returning nothing (which i assume mean it doesn't have any limits)
I'm aware of other post that mention that unsetting those variable is preferred, but like another one this doesn't seem to always be the case.
I did found an alternative (didn't tried it yet) such as this one.
I'm using Ubuntu's default .bashrc, with HISTSIZE and HISTFILESIZE commented, since already part of the defaults. (so that it doesn't interfere with the snippet mentioned above)
Other related posts that was consulted:
- history list in bash always truncated to 5000 lines at new login
- Is there a way to set the size of the history list in bash to more than 5000 lines?
I didn't yet tried the alternative i mentioned above, and so I'm curious if there could be other reasons for this to happen, beside what was already mentioned on the mentioned posts.