Skip to content

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

Open
gghhffyy368 wants to merge 8 commits into
mamba-org:mainfrom
gghhffyy368:fix/powershell-quotes
Open

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

Conversation

@gghhffyy368

@gghhffyy368 gghhffyy368 commented Mar 1, 2026

Copy link
Copy Markdown

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

codecov Bot commented Mar 2, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 54.74%. Comparing base (a3c2580) to head (c21c885).
⚠️ Report is 8 commits behind head on main.

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   54.75%   54.74%   -0.01%     
==========================================
  Files         240      240              
  Lines       30145    30147       +2     
  Branches     3214     3215       +1     
==========================================
  Hits        16505    16505              
- Misses      13637    13639       +2     
  Partials        3        3              

☔ View full report in Codecov by Harness.
📢 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

3 participants