<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>39838</bug_id>
          
          <creation_ts>2021-03-25 16:56:54 +0300</creation_ts>
          <short_desc>bash truncates ~/.bash_history to 9999 lines despite of $HISTFILESIZE</short_desc>
          <delta_ts>2021-03-25 16:56:54 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>bash4</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Vladimir D. Seleznev">vseleznv</reporter>
          <assigned_to name="placeholder@altlinux.org">placeholder</assigned_to>
          <cc>glebfm</cc>
    
    <cc>ldv</cc>
    
    <cc>placeholder</cc>
    
    <cc>vt</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>197251</commentid>
    <comment_count>0</comment_count>
    <who name="Vladimir D. Seleznev">vseleznv</who>
    <bug_when>2021-03-25 16:56:54 +0300</bug_when>
    <thetext>When $HISTFILESIZE is set in ~/.bashrc (or any other bash user initialization file), bash during the login session respects its value and truncates ~/.bash_history (I assume the default $HISTFILE) when its line number exceeds $HISTFILESIZE. But with new user login bash truncates ~/.bash_history to 9999 lines, it is very annoying when $HISTFILESIZE is greater that 9999.

HISTFILESIZE=9999 is set in /etc/profile but I think bash handles it too early that it should.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>