Your message dated Thu, 21 Mar 2024 01:30:03 +0100
with message-id <[email protected]>
and subject line Re: Bug#1023776: bash: 'read -e -t 1' triggers bash exit
has caused the Debian Bug report #1023776,
regarding bash: 'read -e -t 1' triggers bash exit
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
1023776: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1023776
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: bash
Version: 5.2-2+b1
Severity: important
Dear Maintainer,
Since Bash 5.2, when both -e and -t options are used, read terminates the shell
session.
This can be tested as follow in a terminal:
> /usr/bin/bash
> echo $SHLVL
2
> read -e -t 1
> echo $SHLVL
1
or by executing this small script where any subsequent use of read -e is
rendered ineffective:
#!/usr/bin/env bash
read -et .001
read -e -p "type something: "
echo -e "\nyou typed $REPLY"
Note that 'read -e -t 0' does not exit, so it really has something to do with
timings.
Regards,
Fabien
-- System Information:
Debian Release: bookworm/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386, armel
Kernel: Linux 6.0.0-2-amd64 (SMP w/4 CPU threads; PREEMPT)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages bash depends on:
ii base-files 12.3
ii debianutils 5.7-0.3
ii libc6 2.36-4
ii libtinfo6 6.3+20220423-2
Versions of packages bash recommends:
ii bash-completion 1:2.11-6
Versions of packages bash suggests:
pn bash-doc <none>
-- no debconf information
--- End Message ---
--- Begin Message ---
Version: 5.2.15-2
This bug has been fixed upstream and the fix is included in version 5.2.15.
Thank you for reporting this issue.
--- End Message ---