On 1/5/16 8:08 AM, Greg Wooledge wrote: > imadev:~$ zap me > bash: zap: command not found > imadev:~$ history -d -1 > bash: history: -1: history position out of range > imadev:~$ history -d end > bash: history: end: history position out of range > > Allowing a negative offset to refer to the last (or last minus however > many) entry would probably satisfy the original request. Semantically, > there's precedent with negative array indices and negative starting > positions in ${parameter:offset:length} notation.
Yes, this is a reasonable feature to consider for a future version. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, ITS, CWRU c...@case.edu http://cnswww.cns.cwru.edu/~chet/