Skip to content

Fix stdin piping to nested bash -c commands#102

Merged
cramforce merged 3 commits intovercel-labs:mainfrom
robertyates:pass-stdin-to-bash
Feb 9, 2026
Merged

Fix stdin piping to nested bash -c commands#102
cramforce merged 3 commits intovercel-labs:mainfrom
robertyates:pass-stdin-to-bash

Conversation

@robertyates
Copy link
Copy Markdown
Contributor

Fixes stdin not being passed through when piping to nested bash -c commands. Commands like echo "data" | bash -c 'cat' now work correctly.

Changes:

Added stdin parameter to ExecOptions and CommandExecOptions interfaces
Pass stdin through groupStdin in interpreter state when executing nested scripts
Added 4 tests covering various stdin piping scenarios

@vercel
Copy link
Copy Markdown

vercel bot commented Feb 6, 2026

@robertlyates is attempting to deploy a commit to the Vercel Labs Team on Vercel.

A member of the Team first needs to authorize it.

@robertyates
Copy link
Copy Markdown
Contributor Author

robertyates commented Feb 9, 2026

@cramforce hopefully this is an easy one, the unit test introduces a failing test and then the fix is relatively small, again an urgent one for me, and likely others

@cramforce cramforce merged commit 56f93b3 into vercel-labs:main Feb 9, 2026
7 of 9 checks passed
@cramforce
Copy link
Copy Markdown
Contributor

Shipped patch release

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.

3 participants