You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an example script (echo 123) | grep 123 in my package.json's scripts and when I run yarn run example, I do get '123' in terminal but the exit code from echo $? is 1 and I'm not sure why, could be a bug?
ebo-trelly
changed the title
yarn run with parentheses and pipe not working as expected
yarn run command with parentheses and pipe giving error
Apr 17, 2024
Self-service
Describe the bug
I have an example script
(echo 123) | grep 123
in my package.json's scripts and when I runyarn run example
, I do get '123' in terminal but the exit code from echo $? is 1 and I'm not sure why, could be a bug?To reproduce
Package.json
Run
yarn run example
Environment
System: OS: macOS 14.3.1 CPU: (8) x64 Intel(R) Core(TM) i5-1038NG7 CPU @ 2.00GHz Binaries: Node: 20.9.0 - /private/var/folders/ls/4h4kh3zx5pn5v09t5gp8xhl40000gn/T/xfs-0fa3b005/node Yarn: 4.0.1 - /private/var/folders/ls/4h4kh3zx5pn5v09t5gp8xhl40000gn/T/xfs-0fa3b005/yarn npm: 10.1.0 - /usr/local/bin/npm npmPackages: jest: ^29.7.0 => 29.7.0
Additional context
No response
The text was updated successfully, but these errors were encountered: