bug-bash
[Top][All Lists]
Advanced

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

Re: [PATCH] Fix history deletion when using negative offsets (from the e


From: Chet Ramey
Subject: Re: [PATCH] Fix history deletion when using negative offsets (from the end)
Date: Fri, 26 Feb 2021 11:53:14 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.8.0

On 2/25/21 2:06 PM, Christopher Gurnee wrote:
Bash Version: 5.1
Patch Level: 4
Release Status: release
Git Commit: f3a35a2d (current master)

I don't really know the contribution rules for bash; my apologies in advance if I'm missing anything or otherwise doing something wrong.

Description:

`history -d -#` can sometimes fail with the error `-bash: history: -#: history position out of range` even when the history entry is present.

Thanks for the report and fix.

Chet

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



reply via email to

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