Skip to content

[Bug]: Interactive prompting does not work #1378

Description

@Exidex

What happened?

According to #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:zx@8.8.5/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:

Screen.Recording.2025-12-16.at.10.33.47.mov

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions