-
-
Notifications
You must be signed in to change notification settings - Fork 660
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Output exa results differently in scripting environment with grid options #1083
Comments
Experiencing the same issue. And here's the script, output, and system/software details:
This root cause might be the same as what's reported in issue 990. |
Does it still happen with latest master, or with [the active fork eza)[https://github.com/eza-community/eza]? |
Doing compare and contrast of
|
Hum thinking about it, I don’t think it’s wrong. I believe In a script, exa doesn’t know about the number of columns of the terminal, or because it’s easier to treat output line by line in scripts. Besides, it’s also the behavior of |
I understand your point. In fact, it's normal to handle "array" behavior line by line in a script environment. However, In my opinion the CLI provides this option and a user uses it, but the resulting behavior is not as expected, it could lead to the script becoming ineffective and unreasonable. It's like |
Ah I see, so when passing |
If exa does something unexpected, or its output looks wrong, or it displays an error on the screen, or if it outright crashes, then please include the following information in your report:
exa --version
)If it’s a crash, please include the full text of the crash that gets printed to the screen. If you’re seeing unexpected behaviour, a screenshot of the issue will help a lot.
exa --version
: v0.10.1OS: macOS 12.0.1
CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
Memory: 24.61 MB / 16.00 GB
Shell: 5.8 - /bin/zsh
In scripting environment. I hope to be able to record the output of exa completely, but as you can see, it is output in
oneline
form, but I have specified my options--grid
but it doesn't seem to take effect.Reproduce:
Guess: whether with
[ -t 1 ]
is forced output processingThe text was updated successfully, but these errors were encountered: