[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: possible bug with 4.1
From: |
Bob Proulx |
Subject: |
Re: possible bug with 4.1 |
Date: |
Mon, 3 May 2010 09:23:09 -0600 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
George R Goffe wrote:
> I have noticed that some commands appear in history and some do
> not. I have isolated that to commands that have blanks before their
> name. I sometimes see this with pasted commands but this may be the
> same problem.
>
> Am I doing something wrong by any chance?
This is a feature so that a user may control what commands go into the
history and which do not. In the bash man page it says:
HISTCONTROL
A colon-separated list of values controlling how commands are
saved on the history list. If the list of values includes
ignorespace, lines which begin with a space character are not
saved in the history list.
Remove "ignorespace" from HISTCONTROL and it will save commands that
begin with a space too.
Bob