On 2/20/19 8:10 AM, Michael Albinus wrote: > 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. 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"); Thanks for the report. Try the attached patch and see if that fixes the crash. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRU chet@case.edu http://tiswww.cwru.edu/~chet/