#655 ~/.bash_history is created even with HISTFILESIZE=0

None
closed
nobody
lxterminal (64)
5
2014-10-31
2014-07-05
Sworddragon
No

I'm using LXTerminal 0.1.11 and I'm noticing that after executing a command and closing LXTerminal the file ~/.bash_history will be created even if HISTFILESIZE is set to 0. I think it would be better to not create this file if HISTFILESIZE is set to 0 to keep the user directory more clean.

Discussion

  • Sworddragon

    Sworddragon - 2014-07-05

    Edit: By accident I have posted this in the Bugs category but it should be a Feature Request.

     
  • FinboySlick

    FinboySlick - 2014-10-12

    lxterminal does not have control over bash, it is not aware of .bash_history or whether it should be created or not.

    I suspect that the HISTFILESIZE variable isn't set to what you expect in the environment that spawns lxterminal which in turn spawns bash. Try 'echo $HISTFILESIZE' in lxterminal to check.

     
  • Sworddragon

    Sworddragon - 2014-10-13

    Try 'echo $HISTFILESIZE' in lxterminal to check.

    sworddragon@ubuntu:~$ echo $HISTFILESIZE
    0

     
  • Lonely Stranger

    Lonely Stranger - 2014-10-13

    Perhaps "0" means unlimited size. Try to use empty string instead. Or better try to unset HISTFILE instead (read the bash man page for details). And anyway, it should not be any terminal issue, it's issue of bash.

     
    Last edit: Lonely Stranger 2014-10-13
  • Sworddragon

    Sworddragon - 2014-10-13

    Perhaps "0" means unlimited size.

    Since ~/.bash_history doesn't save any entries anymore with "0" it seems to mean disabled.

    And anyway, it should not be any terminal issue, it's issue of bash.

    I have forwarded now this issue to Launchpad.

     
  • FinboySlick

    FinboySlick - 2014-10-31
    • status: open --> closed
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks