I wanna disable the histsize at the /etc/profile .
so i enabled the comment line like:
#HISTSIZE=1000
i know that # tag is handling the comment line, so it is same as HISTSIZE=0. Isn't it?
only HISTSIZE=0 is applied the actually, #HISTSIZE=1000 is continuously worked.
why # is not activated? is there a default value existing the histsize?
it is not applied the comment(#)for histsize
Re: it is not applied the comment(#)for histsize
Commenting out an assignment is not the same as setting it to zero. If you do you would expect to see "40" on both occasions. Likewise if you simply comment out #HISTSIZE=1000 the default will apply, which for BASH 4.2 is 500.
Code: Select all
$ x=40
$ echo $x
$ #x=99
$ echo $x
Re: it is not applied the comment(#)for histsize
MartinR wrote:Commenting out an assignment is not the same as setting it to zero. If you doyou would expect to see "40" on both occasions. Likewise if you simply comment out #HISTSIZE=1000 the default will apply, which for BASH 4.2 is 500.Code: Select all
$ x=40 $ echo $x $ #x=99 $ echo $x
Thank you Martin. I understand it.