bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bash-4.2.53: HISTSIZE=-1 causes segfault on startup


From: Chet Ramey
Subject: Re: bash-4.2.53: HISTSIZE=-1 causes segfault on startup
Date: Mon, 8 May 2017 19:43:27 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.1.0

On 5/8/17 4:29 PM, address@hidden wrote:

> Bash Version: 4.2
> Patch Level: 53
> Release Status: release
> 
> Description:
>         Bash 4.3 introduced "-1" for unlimited history.
> 
>       Starting bash 4.2 with HISTSIZE=-1 in ~/.bashrc causes a segmentation
>       fault (assuming you have a ~/.bash_history with at least one entry).
>       This can easily happen if several systems (with different bash
>         versions) mount the same home directory.

Thanks for the report.  Bash-4.2 was released in 2011, is two versions old,
and is no longer supported.

If you want a workaround that should work in bash-4.2 and bash-4.3, try
using some large number (people have used 9999) for HISTSIZE, giving you
effectively unlimited history.

Chet
-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]