Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #16742
| From | Chet Ramey <chet.ramey@case.edu> |
|---|---|
| Newsgroups | gnu.bash.bug |
| Subject | Re: [PATCH] fc: trim range instead of erroring out |
| Date | 2020-08-11 14:27 -0400 |
| Organization | ITS, Case Western Reserve University |
| Message-ID | <mailman.1591.1597170455.2739.bug-bash@gnu.org> (permalink) |
| References | <bee8013d-39e9-7433-934f-89fce4134369@inlv.org> <27058aba-fe72-b22c-f00a-800357d9c2a9@case.edu> |
On 8/11/20 11:59 AM, Martijn Dekker wrote: > As I use/try/test many shells, I'm in the habit of using POSIX commands > such as 'fc -l 1' to list the complete history. > > If there have been more than $HISTSIZE command, the list is trimmed at the > beginning without renumbering, and bash errors out: > > $ fc -l 1 > bash-5.0: fc: history specification out of range > > This is different from every other shell, and also looks like it's contrary > to the POSIX spec: > https://pubs.opengroup.org/onlinepubs/9699919799/utilities/fc.html#tag_20_44_05 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/
Back to gnu.bash.bug | Previous | Next | Find similar
Re: [PATCH] fc: trim range instead of erroring out Chet Ramey <chet.ramey@case.edu> - 2020-08-11 14:27 -0400
csiph-web