8000
According to #99, zx should process stdin but it seems to be not working
See demo. The expectation is that deno and zx scripts would work the same as bash script
deno run shebang. File: deno.ts. Doesn't work
deno run
#!/usr/bin/env -S deno run -A import "npm:zx@8.8.5/globals"; await $`cat`
zx shebang. File: zx.ts. Doesn't work
zx
#!/usr/bin/env zx await $`cat`
plain bash. FIle: bash.sh. Works
#!/usr/bin/env bash cat
See demo:
8.8.5
Mac
Deno
deno 2.5.4 (stable, release, aarch64-apple-darwin) v8 14.0.365.5-rusty typescript 5.9.2
I can be fixed via explicit $({input: process.stdin})`cat` , but such a significant default behavior change would definitely require version 9.
$({input: process.stdin})`cat`
Activity
antongolub commentedon Feb 24, 2026
I can be fixed via explicit
$({input: process.stdin})`cat`, but such a significant default behavior change would definitely require version 9.