[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: previous command v whitespace following prompt
From: |
Eric Blake |
Subject: |
Re: previous command v whitespace following prompt |
Date: |
Mon, 27 Feb 2012 12:04:40 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:10.0.1) Gecko/20120216 Thunderbird/10.0.1 |
On 02/27/2012 11:59 AM, Duarte Fusco wrote:
> hi
>
> I do this:
> $ ls a
> a
> $ ls b
> b
>
> then I press C-p and I get
> $ ls a
>
> I put some whitespace following the prompt before typing ls b.
> I was expecting to get the previous command but it gave me the before
> previous one.
> Is this a bug?
No, it is probably intentional. According to the documentation of
HISTCONTROL, if you have the ignorespace option set in your history
control, then use of leading whitespace exempts that command from being
tracked in history.
--
Eric Blake eblake@redhat.com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature