[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: |
Sun, 28 Feb 2021 17:31:59 -0500 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.8.0 |
On 2/26/21 4:38 PM, Christopher Gurnee wrote:
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 exit status of 0, which I think is a bit unexpected.
I think it's fair to return 1 in the case of an invalid range, and to
document it.
--
``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/