- Any other interesting things about your environment that might be related
to the issue you're seeing? **No.**
### Details
- Which terminal/shell are you running Git from? **Git Bash**
- What commands did you run to trigger this issue?
sleep 10
echo 1
**Note: The second comand is typed before the first command is finished.**
- What did you expect to occur after running these commands?
user@host MINGW64 ~
$ sleep 10
echo 1
user@host MINGW64 ~
$ echo 1
1
- What actually happened instead?
user@host MINGW64 ~
$ sleep 10
echo 1
user@host MINGW64 ~
$
### Additional details and commentary.
The problem appeared in version 2.42 and is not reproduced in version 2.41.
Specifically, I checked following versions (on the same system, with same installation options), with specified result:
> git version 2.41.0.windows.1 - OK
> git version 2.42.0.windows.2 - BUG
> git version 2.43.0.windows.1 - BUG
> git version 2.44.1.windows.1 - BUG
> git version 2.45.2.windows.1 - BUG
It seems that normal (generally accepted) behavior is to execute the second command.
I confirmed the behavior in:
- Terminals in Linux distributions: RHEL 9, Ubuntu
- SSH with Bash shell
- In Windows: cmd.exe, powershell.exe, pwsh.exe
### Severity of the issue.
This is inconvenient.
I often type multiple Git commands without waiting for previous commands to finish.
So I have to revert to Git 2.41.
Setup
Microsoft Windows [Version 10.0.19044.4412]
$ cat /etc/install-options.txt
Editor Option: VIM Custom Editor Path: Default Branch Option: Path Option: Cmd SSH Option: OpenSSH Tortoise Option: false CURL Option: OpenSSL CRLF Option: CRLFAlways Bash Terminal Option: MinTTY Git Pull Behavior Option: Merge Use Credential Manager: Enabled Performance Tweaks FSCache: Enabled Enable Symlinks: Disabled Enable Pseudo Console Support: Disabled Enable FSMonitor: Disabled
sleep 10 echo 1
user@host MINGW64 ~ $ sleep 10 echo 1
user@host MINGW64 ~ $ echo 1 1
user@host MINGW64 ~ $ sleep 10 echo 1
user@host MINGW64 ~ $