Why would certainly any person not set 'histappend' in bash?

After figuring out what this shopt -s histappend means, it appears a really rational setup, and also I'm shocked that it isn't default. Why would certainly any person intend to clean their background on each covering exit?

2019-05-18 23:34:10
Source Share
Answers: 2

For historic compatibility, I presume. The histappend alternative really did not exist till bash 2.0.

2019-05-21 11:00:54

Well, when histappend is not set, this does not suggest that the background is cleaned on each covering exit. Without histappend bash reviews the histfile on start-up right into memory - throughout procedure new access are included - and also on shell exit the last HISTSIZE lines are contacted the background documents without adding, i.e. changing the previous web content.

As an example, if the histfile has 400 access, throughout bash runtime 10 new access are included - histsize is readied to 500, after that the new histfile has 410 access.

This actions is just bothersome if you make use of extra bash circumstances in parallel. Because instance, the background documents just has the materials of the last leaving covering.

Independent of this: There are some individuals that intend to clean their background on covering exit as a result of personal privacy factors.

2019-05-21 08:53:53