bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: problem with HISTCONTROL


From: Chet Ramey
Subject: Re: problem with HISTCONTROL
Date: Fri, 17 Jul 2015 11:09:54 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.7.0

On 7/11/15 12:43 PM, isabella parakiss wrote:
> When the value of HISTCONTROL is ignoredups or ignoreboth, if you enter
> a command and then open the editor and add lines to it without changing
> the first line, only the first line will be stored in the history.
> 
> I'm terrible at explaining, but I recorded what happens:
> https://asciinema.org/a/23275
> Hopefully it's clear enough, I'm pressing up arrow to get that line.
> 
> I tested a few versions and I can reproduce it in 3.1 and above.

Yes, `fc -e' doesn't save commands in the history, and it's tough to
keep the right parser state on the fly like that. That may get fixed
someday.

-- 
``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/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]