Skip to content

Conversation

@tjcork
Copy link
Contributor

@tjcork tjcork commented Apr 1, 2025

To fix issue ShellIntegration-bash is not properly escaping windows paths #245260 where echo is causing characters to be interpreted instead of escaped.
#245260 issue mostly affects insider release at the moment

To fix issue ShellIntegration-bash is not properly escaping windows paths microsoft#245260
where echo is causing characters to be interpreted instead of escaped
@anthonykim1
Copy link
Contributor

Thanks for this.

I agree, parameter expansion should be safer (since echo with special characters can cause some issues with those in windows path), and this would make things faster too since we avoid echo and cut (I think these spawn subprocesses)

We also use the safer approach here with env reporting stuff.

@vs-code-engineering vs-code-engineering bot added this to the April 2025 milestone Apr 2, 2025
@anthonykim1 anthonykim1 changed the title Fix shellIntegration-bash.sh Apr 2, 2025
@Tyriar Tyriar requested a review from meganrogge April 2, 2025 17:12
@Tyriar
Copy link
Member

Tyriar commented Apr 2, 2025

@meganrogge can you test this one too when you're back?

@Milonali123

This comment was marked as spam.

Copy link
Contributor

@meganrogge meganrogge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@meganrogge meganrogge enabled auto-merge (squash) April 15, 2025 17:30
@meganrogge meganrogge merged commit 3a28d8d into microsoft:main Apr 15, 2025
7 checks passed
anthonykim1 added a commit that referenced this pull request May 9, 2025
anthonykim1 added a commit that referenced this pull request May 13, 2025
…sh shell integration (#248861)

Recovery release)Reverting parameter expansion in bash shell integration
@vs-code-engineering vs-code-engineering bot locked and limited conversation to collaborators May 30, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

5 participants