[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Feature: Easily remove current command from history
From: |
Chet Ramey |
Subject: |
Re: Feature: Easily remove current command from history |
Date: |
Thu, 7 Jan 2016 15:32:07 -0500 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 |
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 chet@case.edu http://cnswww.cns.cwru.edu/~chet/
- Re: Feature: Easily remove current command from history, (continued)
- Re: Feature: Easily remove current command from history, Victor Porton, 2016/01/04
- Re: Feature: Easily remove current command from history, Chet Ramey, 2016/01/04
- Re: Feature: Easily remove current command from history, Victor Porton, 2016/01/04
- Re: Feature: Easily remove current command from history, Piotr Grzybowski, 2016/01/04
- Re: Feature: Easily remove current command from history, Greg Wooledge, 2016/01/04
- Re: Feature: Easily remove current command from history, Victor Porton, 2016/01/04
- Re: Feature: Easily remove current command from history, Eduardo A . Bustamante López, 2016/01/04
- Re: Feature: Easily remove current command from history, Dennis Williamson, 2016/01/04
- Re: Feature: Easily remove current command from history, Dennis Williamson, 2016/01/04
- Re: Feature: Easily remove current command from history, Greg Wooledge, 2016/01/05
- Re: Feature: Easily remove current command from history,
Chet Ramey <=
- Re: Feature: Easily remove current command from history, Piotr Grzybowski, 2016/01/08
- Re: Feature: Easily remove current command from history, Chet Ramey, 2016/01/11
- Re: Feature: Easily remove current command from history, Dennis Williamson, 2016/01/05
- Re: Feature: Easily remove current command from history, Andreas Schwab, 2016/01/04