[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bash 5.0 dies with HISTSIZE=0
From: |
Michael Albinus |
Subject: |
bash 5.0 dies with HISTSIZE=0 |
Date: |
Wed, 20 Feb 2019 14:10:52 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
Configuration Information [Automatically generated, do not change]:
Machine: x86_64
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -g -O2 -Wno-parentheses -Wno-format-security
uname output: Linux BRONB4NHFYN1 4.20.8-200.fc29.x86_64 #1 SMP Wed Feb 13
13:08:05 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Machine Type: x86_64-pc-linux-gnu
Bash Version: 5.0
Patch Level: 0
Release Status: release
Description:
This is an error report from an Emacs/Tramp user. With bash 5.0, bash
5.0 dies when HISTSIZE is set to 0. Setting it to 1 seems to work. Using
bash 4.4 works as well. <See https://debbugs.gnu.org/34192> for details.
Repeat-By:
The following is an extract from what Tramp does inside Emacs. I could
reproduce it in a a shell:
# env TERM='dumb' INSIDE_EMACS='27.0.50,tramp:2.4.2-pre' ENV='' HISTFILE=''
HISTFILESIZE=0 HISTSIZE=0 PROMPT_COMMAND='' PS1=\#\$\ PS2='' PS3=''
/home/albinus/src/bash-5.0/bash -norc -noprofile
#$ tramp_perl_file_name_all_completions () {
\perl -e '
opendir(d, $ARGV[0]) || die("$ARGV[0]: $!\nfail\n");
The first line starts bash 5.0 with several environment variables,
including HISTSIZE=0. The second line, after the "#$ " prompt, starts a
shell function declaration. The third and fourth line belong to this
shell function. After the fourth line, bash dies. The exit code is 139.
The same scenario, but with HISTSIZE=1, works proper.
Best regards, Michael.
- bash 5.0 dies with HISTSIZE=0,
Michael Albinus <=
- Re: bash 5.0 dies with HISTSIZE=0, Chet Ramey, 2019/02/20
- Re: bash 5.0 dies with HISTSIZE=0, Michael Albinus, 2019/02/21
- Re: bash 5.0 dies with HISTSIZE=0, Chet Ramey, 2019/02/21
- Re: bash 5.0 dies with HISTSIZE=0, Michael Albinus, 2019/02/21
- Re: bash 5.0 dies with HISTSIZE=0, Chet Ramey, 2019/02/22
- Re: bash 5.0 dies with HISTSIZE=0, Michael Albinus, 2019/02/22
- Re: bash 5.0 dies with HISTSIZE=0, Chet Ramey, 2019/02/22