[PATCH] fix the termcap string for _rl_term_kP

2021-09-22 Thread Koichi Murase
Bash Version:
  devel branch (441078402919f6f0dd677cad18d55c7a89d294fc),
  5.1.8(2)-maint (x86_64-pc-linux-gnu)

Description:

  The key `page-up', which is supposed to be bound to the readline
  bindable function `history-search-backward' after commit 65822e50,
  does not actually work because of a typo in `lib/readline/terminal.c'.

Fix:

  I attach a patch.

--
Koichi


0001-fix-the-termcap-string-for-_rl_term_kP.patch
Description: Binary data


Re: [PATCH] fix the termcap string for _rl_term_kP

2021-09-22 Thread Chet Ramey
On 9/22/21 7:59 AM, Koichi Murase wrote:
> Bash Version:
>   devel branch (441078402919f6f0dd677cad18d55c7a89d294fc),
>   5.1.8(2)-maint (x86_64-pc-linux-gnu)
> 
> Description:
> 
>   The key `page-up', which is supposed to be bound to the readline
>   bindable function `history-search-backward' after commit 65822e50,
>   does not actually work because of a typo in `lib/readline/terminal.c'.

Thanks for the report.

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/



Line counting is ideosyncratic with eval.

2021-09-22 Thread dfsmith
Configuration Information [Automatically generated, do not change]:
Machine: x86_64
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -g -O2 -fdebug-prefix-map=/build/bash-2bxm7h/bash-5.0=. 
-fstack-protector-strong -Wformat -Werror=format-security -Wall 
-Wno-parentheses -Wno-format-security
uname output: Linux porter 4.19.0-13-amd64 #1 SMP Debian 4.19.160-2 
(2020-11-28) x86_64 GNU/Linux
Machine Type: x86_64-pc-linux-gnu

Bash Version: 5.0
Patch Level: 3
Release Status: release

Description:
When running commands through eval, the script's line counter
is incremented, even though the eval line is fixed.

Repeat-By:
The error in this 6-line script is reported as being at line 1006.

$ cat x.sh
#!/bin/bash

set -eu
unset heavy_cargo
many_lines=$( for((i=0; i<1000; i++)); do echo ":"; done; echo "echo 
\$heavy_cargo" )
eval "$many_lines"

$ ./x.sh
./x.sh: line 1006: heavy_cargo: unbound variable