Skip to content

Conversation

@tessus
Copy link
Contributor

@tessus tessus commented Aug 30, 2025

After fixing the handling of standard input, an issue #1568 was opened. While the previous PR (#1336) made this behavior possible, the problem is rather caused by the environments that run eza. The issue described in #1568 is happening because eza is not run interactively, but via something else: e.g. gh actions, claude, ... These environments mess with the terminal and the standard input/output/error streams. They use pseudo terminals and/or redirect input/output.

An argument was made that there is no reason for eza to allow data being piped into it. By default that is, not via an argument like --stdin. This is a perfectly valid point, especially since a lot of other command line tools do not read from stdin by default, when data is piped into them.

The following change makes eza only read from stdin, if the argument --stdin is used.

This will fix the misbehavior caused by certain environments.

BREAKING CHANGE: only read from stdin, if the argument --stdin is used.

closes #1568

After fixing the handling of standard input, an issue eza-community#1568 was opened.
While the previous PR (eza-community#1336) made this behavior possible, the problem
is rather caused by the environments that run eza.
The issue described in eza-community#1568 is happening because eza is not run
interactively, but via something else: e.g. gh actions, claude, ...
These environments mess with the terminal and the standard
input/output/error streams. They use pseudo terminals and/or redirect
input/output.

An argument was made that there is no reason for eza to allow data being
piped into it. By default that is, not via an argument like `--stdin`.
This is a perfectly valid point, especially since a lot of other
command line tools do not read from stdin by default, when data is
piped into them.

The following change makes eza only read from stdin, if the argument
`--stdin` is used.

This will fix the misbehavior caused by certain environments.

BREAKING CHANGE: only read from stdin, if the argument `--stdin` is used.
@tessus tessus requested a review from MartinFillon as a code owner August 30, 2025 21:45
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 v0.23.0 prints no output when called without a file or directory name argument

1 participant