Skip to content

fix: capture pipeline output in command substitution - #6

Merged
caomengxuan666 merged 1 commit into
masterfrom
fix/command-substitution-function-pipeline
Jul 22, 2026
Merged

caomengxuan666 merged 1 commit into
masterfrom
fix/command-substitution-function-pipeline

Conversation

@caomengxuan666

Copy link
Copy Markdown
Member

Fixes unixwin/niubash#11.\n\nWhen a function body contains a pipeline inside command substitution, the final pipeline output must respect the active stdout capture buffer instead of writing directly to process stdout. This keeps assignment results populated and prevents leaked output.\n\nAdds a regression covering function pipeline output inside command substitution.

@caomengxuan666
caomengxuan666 merged commit 24198d6 into master Jul 22, 2026
3 checks passed
caomengxuan666 added a commit to unixwin/niubash that referenced this pull request Jul 22, 2026
Use rubash master so winuxsh picks up the merged command substitution capture fix from unixwin/rubash#6.\n\nAlso adds a compat regression for a function pipeline inside command substitution.\n\nCI passed on PR #12.
@caomengxuan666
caomengxuan666 deleted the fix/command-substitution-function-pipeline branch July 27, 2026 03:05
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.

Bug report: pipeline and command replacement have capture defects

1 participant