Skip to content

Fix PowerShell syntax error of quotes (Fixes #3908)#4179

Open
gghhffyy368 wants to merge 6 commits intomamba-org:mainfrom
gghhffyy368:fix/powershell-quotes
Open

Fix PowerShell syntax error of quotes (Fixes #3908)#4179
gghhffyy368 wants to merge 6 commits intomamba-org:mainfrom
gghhffyy368:fix/powershell-quotes

Conversation

@gghhffyy368
Copy link

@gghhffyy368 gghhffyy368 commented Mar 1, 2026

Description

This PR fixes a syntax error generated by mamba shell hook in PowerShell where the quotes in third line of output causes the problem. This PR attempts to use "& " to run commands represented by strings in Powershell. I compiled this change on my PC with Visual Studio 17 2022 and it solved that problem.

Type of Change

  • Bugfix
  • Feature / enhancement
  • CI / Documentation
  • Maintenance

Checklist

  • My code follows the general style and conventions of the codebase, ensuring consistency
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • My changes generate no new warnings
  • I have run pre-commit run --all locally in the source folder and confirmed that there are no linter errors.
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing tests pass locally with my changes

Fixes #3908

@github-actions github-actions bot added the release::bug_fixes For PRs fixing bugs label Mar 1, 2026
@codecov
Copy link

codecov bot commented Mar 2, 2026

Codecov Report

❌ Patch coverage is 0% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 52.30%. Comparing base (1940761) to head (a896f7e).

Files with missing lines Patch % Lines
libmamba/src/core/activation.cpp 0.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4179      +/-   ##
==========================================
- Coverage   52.30%   52.30%   -0.01%     
==========================================
  Files         239      239              
  Lines       29088    29090       +2     
  Branches     3082     3083       +1     
==========================================
  Hits        15215    15215              
- Misses      13870    13872       +2     
  Partials        3        3              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release::bug_fixes For PRs fixing bugs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

micromamba shell init doesn't work

2 participants