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   ebl...@redhat.com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to