#1378·zx

[Bug]: Interactive prompting does not work

Author: ExidexCreated Dec 16, 2025Updated Feb 24, 2026
Labelsbug

What happened?

According to https://github.com/google/zx/issues/99, zx should process stdin but it seems to be not working

How it should work?

See demo. The expectation is that deno and zx scripts would work the same as bash script

How to reproduce the bug?

deno run shebang. File: deno.ts. Doesn't work

#!/usr/bin/env -S deno run -A
import "npm:[email protected]/globals";

await $`cat`

zx shebang. File: zx.ts. Doesn't work

#!/usr/bin/env zx

await $`cat`

plain bash. FIle: bash.sh. Works

#!/usr/bin/env bash

cat

See demo:

https://github.com/user-attachments/assets/f57c4bdd-1dc2-497e-bbe3-c3e9620a215d

Version

8.8.5

What's OS kind?

Mac

What JS runtime is used?

Deno

Runtime Version

deno 2.5.4 (stable, release, aarch64-apple-darwin) v8 14.0.365.5-rusty typescript 5.9.2

Error stack / relevant log output

Code of Conduct

  • I agree to follow this project's Code of Conduct