[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: History counts backwards
From: |
Chet Ramey |
Subject: |
Re: History counts backwards |
Date: |
Mon, 27 Dec 2004 16:29:21 -0500 |
> Machine Type: i586-suse-linux
>
> Bash Version: 3.0
> Patch Level: 0
> Release Status: release
>
> Description:
>
> While submitting my previous bug report (on trap) I was surprised to
> get odd history sequence numbers from a subshell:
>
> bow:487> bash
> bow:2:500> trap 1 2 15
> bow:2:499> kill -15 $$
> bash: 1: command not found
> bow:2:498> ls
> pc140004.jpg pc140026.jpg pc160053.jpg pc160060.jpg pc160070.jpg
> pc140007.jpg pc140028.jpg pc160054.jpg pc160061.jpg pc160075.jpg
> pc140008.jpg pc150034.jpg pc160057.jpg pc160063.jpg
> pc140011.jpg pc150035.jpg pc160058.jpg pc160064.jpg
> pc140012.jpg pc160052.jpg pc160059.jpg pc160068.jpg
> bow:2:492> echo a
> a
> bow:2:493> echo b
> b
> bow:2:494> echo c
> c
> bow:2:495> exit
> bow:487>
>
> I wasn't doing anything with shells in other windows at the time. As
> you can see, eventually it decided to start counting forwards again.
Did you happen to have HISTCONTROL set?
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet )
Live...Laugh...Love
Chet Ramey, ITS, CWRU chet@po.cwru.edu http://tiswww.tis.cwru.edu/~chet/