bug-bash
[Top][All Lists]
Advanced

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

Re: Readline history bug


From: Chet Ramey
Subject: Re: Readline history bug
Date: Sat, 1 Feb 2020 16:31:45 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:68.0) Gecko/20100101 Thunderbird/68.4.1

On 1/31/20 3:32 PM, A via Bug reports for the GNU Bourne Again SHell wrote:
> The readline package doesn't return the errno for some errors in 
> write_history, append_history, and history_truncate_file.
> This caused an error in the CPython interpreter(at exit time) when the 
> .python_history file was not writable.
> 
> In particular these calls return -1 when the internal`histfile_restore`call 
> fails because`rename`fails. It's fine for`histfile_restore`to return the 
> result from`rename`, but this should be checked for failure (e.g. -1) and 
> handled appropriately by the caller 
> in`history_do_write`and`history_truncate_file`. 

Thanks for the report. This fix will be in the next bash and readline devel
branch pushes.


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

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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