[Bug]: Interactive prompting does not work
- Dominant language
- JavaScript
- Stars
- 45.7k
- Forks
- 1.3k
- PR merge metrics
- No merged PRs in 30d
Description
### 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
```typescript
#!/usr/bin/env -S deno run -A
import "npm:zx@8.8.5/globals";
await $`cat`
```
`zx` shebang. File: zx.ts. Doesn't work
```typescript
#!/usr/bin/env zx
await $`cat`
```
plain bash. FIle: bash.sh. Works
```bash
#!/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
```shell
```
### Code of Conduct
- [x] I agree to follow this project's Code of Conduct
Contributor guide
Assessment
This issue has not been assessed yet.