From f17d8d3a35d8a5c3b580fc8c706a0cf98e61d6be Mon Sep 17 00:00:00 2001 From: Corey Johnson Date: Sun, 12 Oct 2025 16:47:37 -0700 Subject: [PATCH] test(parser): add test for pipe in assignment MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- src/parser/parser.test.ts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/parser/parser.test.ts b/src/parser/parser.test.ts index ee4b2da..fa12adf 100644 --- a/src/parser/parser.test.ts +++ b/src/parser/parser.test.ts @@ -581,6 +581,24 @@ describe('pipe expressions', () => { Identifier process `) }) + + test('pipe expression in assignment', () => { + expect('result = echo hello | grep h').toMatchTree(` + Assign + Identifier result + operator = + PipeExpr + FunctionCall + Identifier echo + PositionalArg + Identifier hello + operator | + FunctionCall + Identifier grep + PositionalArg + Identifier h + `) + }) }) describe('multiline', () => {