Conversation
…colons Agent-Logs-Url: https://github.com/OfficeDev/microsoft-365-agents-toolkit/sessions/683cfd15-3d39-49f4-9572-c914fb161e1c Co-authored-by: qfai <9050812+qfai@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
qfai
April 29, 2026 06:19
View session
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## dev #15818 +/- ##
=======================================
Coverage 93.32% 93.32%
=======================================
Files 587 587
Lines 37120 37120
Branches 6903 6960 +57
=======================================
Hits 34641 34641
Misses 1835 1835
Partials 644 644 🚀 New features to boost your workflow:
|
HuihuiWu-Microsoft
approved these changes
Apr 29, 2026
wh-alice
added a commit
that referenced
this pull request
Apr 29, 2026
…to-release-6.9 fix: wrap cmd in subshell to fix ::set-teamsfx-env on Linux with semicolons (#15818)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When
cmdcontains semicolons (common in YAML multi-linerun:blocks), bash parses them as command separators — causing eachechoto run standalone without theteeredirect. The temp file stays empty,parseSetOutputCommandreturns{}, and no env vars are set.Change
Wrap
${cmd}in a subshell so bash treats its entire content as one unit piped throughtee:Only the Linux/bash path is affected; the PowerShell path already uses a
& { ... }block for the same reason.