Just hit this issue after upgrading my Debian sid systems.

I can reproduce as follows:

  - log in at the console (with bash as the login shell)
  - set +m
  - exec /bin/sh -c 'read x; echo $x'

For whatever reason I only hit the issue with the shells spawned
directly by 'login', I cannot reproduce over ssh.

As a workaround, running set -m immediately prior to exec avoids the bash bug.

However, this regression has been fixed upstream for several months as
of bash 5.0.7, would be nice to have up-to-date packages in Debian...

Reply via email to