bug-bash
[Top][All Lists]
Advanced

[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: Fri, 24 Dec 2004 22:53:00 -0500
User-agent: Mozilla Thunderbird 0.9 (Windows/20041103)

geoff@cs.hmc.edu wrote:
Configuration Information [Automatically generated, do not change]:
Machine: i586
OS: linux
Compiler: gcc -I/usr/src/packages/BUILD/bash-3.0 
-L/usr/src/packages/BUILD/bash-3.0/../readline-5.0
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='i586' 
-DCONF_OSTYPE='linux' -DCONF_MACHTYPE='i586-suse-linux' -DCONF_VENDOR='suse' 
-DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash' -DSHELL -DHAVE_CONFIG_H  -I.  
-I. -I./include -I./lib   -O2 -march=i586 -mcpu=i686 -fmessage-length=0 -Wall 
-D_GNU_SOURCE -Wall -pipe -g -fbranch-probabilities
uname output: Linux bow 2.6.8-24.5-default #1 Wed Nov 17 11:10:06 UTC 2004 i686 
i686 i386 GNU/Linux
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'll look into it, though I'm sure it has something to do with the
default value of HISTSIZE being 500.

Chet




reply via email to

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