Skip to content

fix: ensure that /dev/null as stdin works.#1726

Open
mijoharas wants to merge 1 commit intoeza-community:mainfrom
mijoharas:fix-handle-dev-null-stdin
Open

fix: ensure that /dev/null as stdin works.#1726
mijoharas wants to merge 1 commit intoeza-community:mainfrom
mijoharas:fix-handle-dev-null-stdin

Conversation

@mijoharas
Copy link
Copy Markdown

If you had stdin linked to /dev/null no output would be returned, as a check for whether stdin was a terminal would fail. Now the problem is that many sandboxes (e.g. claude code sandbox) redirect stdin to /dev/null so when running under those conditions eza would return no output.

Fixes #1725.

Note: see issue for more detail, and a suggested alternative approach.

If you had stdin linked to /dev/null no output would be returned, as a
check for whether stdin was a terminal would fail. Now the problem is
that many sandboxes (e.g. claude code sandbox) redirect stdin to
/dev/null so when running under those conditions `eza` would return no
output.
@mijoharas mijoharas force-pushed the fix-handle-dev-null-stdin branch from 9f023f8 to ca21417 Compare February 24, 2026 23:48
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

Successfully merging this pull request may close these issues.

bug: eza silently exits without listing when stdin is /dev/null

1 participant