Recently while using VS code I’ve encountered an issue where there is a space in the bash terminal after I run a command (as seen in the image below). I’ve noticed this problem because I’ve run commands in another bash terminal on a separate computer and it runs the command without the addition space.
Example of space in bash terminal
I’ve tried running commands in a bash terminal on another computer and it runs the command without the space as expected. I’ve tried running commands from both VS Code and directly from the git bash application and I run in to the same issue. I’ve tried running commands in the command prompt and Powershell in VS Code and they run as expected without the space. This is why I can narrow it down to git bash as the issue. I also get a delay in the length of time it takes for even the simplest commands to run (e.g. pwd) as if the terminal is doing some additional processing with the command. This delay doesn’t happen with the command prompt or powershell terminals.