bug-bash
[Top][All Lists]
Advanced

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

Re: History problem


From: Chet Ramey
Subject: Re: History problem
Date: Thu, 27 Sep 2001 09:31:41 -0400

> Versions 2.04 + 2.05 show the same strange behaviour in
> remembering the previous command line. I have tried both
> a linux virtual console and a xterm.
> 
> Reproduce it:
> 
> 1) Recall a command line by pressing "arrow up".
> 2) Jump to the beginning of the line.
> 3) Change the line by inserting a few blanks plus some
>    other silly stuff.
> 4) Eexecute it by hitting "Enter".
> 
> Now try to recall this changed line by hitting the arrow
> key again.
> 
> The changed line is disappeared. 
> 
> I've seen that it doesn't disappear, if the first char
> in the line isn't a blank.

Look at your $HISTIGNORE variable.  What is its value?  If it is
either `ignorespace' or `ignoreboth', then lines beginning with
a space will not be inserted into the history.

If you don't have $HISTIGNORE, look for $HISTCONTROL.

> The same shit happens if I paste a line with a middle-mouse
> click. It never goes into the history nirvana.

I have no problems doing this.  There isn't enough information here to
say what might be wrong, if anything.

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet)

Chet Ramey, CWRU    chet@po.CWRU.Edu    http://cnswww.cns.cwru.edu/~chet/



reply via email to

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