Skip to content

fix(interpreter): forward pipeline stdin to user-defined functions#294

Merged
chaliy merged 1 commit intomainfrom
claude/issue-274-pipeline-stdin-func-76a2F
Feb 26, 2026
Merged

fix(interpreter): forward pipeline stdin to user-defined functions#294
chaliy merged 1 commit intomainfrom
claude/issue-274-pipeline-stdin-func-76a2F

Conversation

@chaliy
Copy link
Copy Markdown
Contributor

@chaliy chaliy commented Feb 26, 2026

Summary

  • Set self.pipeline_stdin before executing function body, restore after
  • Same pattern already used for compound commands in pipelines (line ~2583)

Test plan

  • issue_274_pipeline_stdin_to_functionecho hello | to_upper works
  • issue_274_pipeline_stdin_to_sourced_function — sourced function receives stdin

Closes #274

@chaliy chaliy merged commit ba6feef into main Feb 26, 2026
16 checks passed
@chaliy chaliy deleted the claude/issue-274-pipeline-stdin-func-76a2F branch March 12, 2026 03:42
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: Pipeline stdin not forwarded to user-defined functions

2 participants