How to set eza to read stdin delimited by NUL? #1802
Answered
by
ShreeChaturvedi
jathek
asked this question in
Q&A, Howto, Help
|
I tried the below but they didn't work. I don't think NUL can be stored in a variable, so is there another way to make this work? EZA_STDIN_SEPARATOR=$'\0'
EZA_STDIN_SEPARATOR=''
EZA_STDIN_SEPARATOR="$(printf '\0')" |
Answered by
ShreeChaturvedi
Aug 20, 2026
Replies: 1 comment 1 reply
|
There's no NUL mode today. If your paths don't contain newlines: find . -print0 | tr '\0' '\n' | eza --stdin |
1 reply
Answer selected by
jathek
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
EZA_STDIN_SEPARATOR=$'\0'can't work. Environment variables are C strings, so they can't hold a NUL byte. All three of those assignments become empty, and eza then splits on every character.There's no NUL mode today. If your paths don't contain newlines: