Debian Bug report logs -
#1023776
bash: 'read -e -t 1' triggers bash exit
Reply or subscribe to this bug.
Toggle useless messages
Report forwarded
to debian-bugs-dist@lists.debian.org, Matthias Klose <doko@debian.org>:
Bug#1023776; Package bash.
(Thu, 10 Nov 2022 00:39:04 GMT) (full text, mbox, link).
Acknowledgement sent
to Fabien Orjollet <of1+debreportbug@disroot.org>:
New Bug report received and forwarded. Copy sent to Matthias Klose <doko@debian.org>.
(Thu, 10 Nov 2022 00:39:04 GMT) (full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
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
Information forwarded
to debian-bugs-dist@lists.debian.org, Matthias Klose <doko@debian.org>:
Bug#1023776; Package bash.
(Fri, 11 Nov 2022 10:00:03 GMT) (full text, mbox, link).
Acknowledgement sent
to Fabien Orjollet <of1+debreportbug@disroot.org>:
Extra info received and forwarded to list. Copy sent to Matthias Klose <doko@debian.org>.
(Fri, 11 Nov 2022 10:00:03 GMT) (full text, mbox, link).
Message #10 received at 1023776@bugs.debian.org (full text, mbox, reply):
Upstream has acknowledged the regression.
https://lists.gnu.org/archive/html/bug-bash/2022-11/msg00033.html
Information forwarded
to debian-bugs-dist@lists.debian.org, Matthias Klose <doko@debian.org>:
Bug#1023776; Package bash.
(Sun, 15 Jan 2023 17:51:02 GMT) (full text, mbox, link).
Acknowledgement sent
to of1 <of1@disroot.org>:
Extra info received and forwarded to list. Copy sent to Matthias Klose <doko@debian.org>.
(Sun, 15 Jan 2023 17:51:02 GMT) (full text, mbox, link).
Message #15 received at 1023776@bugs.debian.org (full text, mbox, reply):
5.2.15-2 solved the problem, I believe that this bug can be closed.
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Wed Dec 6 08:19:34 2023;
Machine Name:
buxtehude
Debian Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.