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    c...@case.edu    http://tiswww.cwru.edu/~chet/

Attachment: signature.asc
Description: OpenPGP digital signature

  • Readline history bug A via Bug reports for the GNU Bourne Again SHell
    • Re: Readline history... Chet Ramey

Reply via email to