#596119 history-search-backward and operate-and-get-next do not cooperate

Package:
bash
Source:
bash
Description:
GNU Bourne Again SHell
Submitter:
Joachim Breitner
Date:
2010-09-08 18:10:40 UTC
Severity:
normal
#596119#5
Date:
2010-09-08 18:03:35 UTC
From:
To:
Hi,

when my history has the lines
echo a
echo b
echo c
and I press three times the up-button, I can ues operate-and-get-next
(Ctrl-O) to execute "echo a" and have the prompt display "echo b" and so
on.

But if I jump to the "echo a" line using history-search-backward,
pressing Ctrl-O gives me an empty line. I’d expect the baviour of
history-search-backward match that of moving to that point in history
via "up".

Thanks,
Joachim


- -- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (101, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.35-trunk-amd64 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages bash depends on:
ii  base-files                5.9            Debian base system miscellaneous f
ii  dash                      0.5.5.1-7      POSIX-compliant shell
ii  debianutils               3.4            Miscellaneous utilities specific t
ii  libc6                     2.11.2-5       Embedded GNU C Library: Shared lib
ii  libncurses5               5.7+20100313-2 shared libraries for terminal hand

Versions of packages bash recommends:
ii  bash-completion               1:1.2-2    programmable completion for the ba

Versions of packages bash suggests:
pn  bash-doc                      <none>     (no description available)

- -- no debconf information
iEYEARECAAYFAkyHz/MACgkQ9ijrk0dDIGyOHwCfffUU1R++Xsi0Va2pxx8C/D2Q
ZYoAoLAzl0WOD2PLxRxvncsDF5fTcqUi
=nzGj
-----END PGP SIGNATURE-----