Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stderr ignore broken in 8.2.1 #945

Closed
innermatrix opened this issue Nov 14, 2024 · 2 comments
Closed

stderr ignore broken in 8.2.1 #945

innermatrix opened this issue Nov 14, 2024 · 2 comments

Comments

@innermatrix
Copy link

8.1.9:

$ bun repl            
> import {$} from 'zx'
> (await $`>&2 echo error`.stdio('inherit', 'pipe', 'ignore').quiet()).toString()
''

8.2.1:

$ bun repl            
> import {$} from 'zx'
> (await $`>&2 echo error`.stdio('inherit', 'pipe', 'ignore').quiet()).toString()
'error\n'
@antongolub
Copy link
Collaborator

relates #931

Hey, @innermatrix,

We've previously fixed the internal spawn piece, so we now have clear and predictable behaviour for two usage scenarios: preconfigured run and delayed run:

await $({ quiet: true, stdio: ['inherit', 'pipe', 'ignore']})`>&2 echo error`

$({ halt: true })`>&2 echo error`.stdio('inherit', 'pipe', 'ignore').quiet().run()

antongolub added a commit to antongolub/zx that referenced this issue Nov 15, 2024
antongolub added a commit to antongolub/zx that referenced this issue Nov 15, 2024
antonmedv pushed a commit that referenced this issue Nov 15, 2024
@innermatrix
Copy link
Author

Oh interesting. Thanks!

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

No branches or pull requests

2 participants