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

2021-02-26 Thread Christopher Gurnee
I would assume that this is implied by "start-end". I agree with you, and I think the documentation is fine. I was just pointing out that specifying an invalid start/end element results in an error and an exit status of 1, but specifying an invalid end-start range results in silence and an ex

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

2021-02-26 Thread Christopher Gurnee
Also somewhat related, deleting a range of history only works if it's specified oldest to newest. Deleting in the other direction is a noop (no diagnostic either), e.g.: history -d 20-10 does nothing if the range 10-20 exists, or prints an `out of range` error otherwise. It probably makes

[PATCH] Fix history deletion when using negative offsets (from the end)

2021-02-25 Thread Christopher Gurnee
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 erro