[Top][All Lists]

[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

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.

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='' 
/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.

reply via email to

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