Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use parameter expansion to fetch envs for envVarCollections in shellIntegration-bash.sh #245264

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tjcork
Copy link

@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 Use parameter expansion to fetch envs for envVarCollections in 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
Copy link

Free penel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants