-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
ls: Proposal to add -0 (zero) option for null terminated output #2836
Comments
Interesting idea! My personal opinion is that we should follow GNU if they implement something like this, but not take the lead on it. I think that |
There is more discussion about this at Stack Overflow... Why not parse Notably, that discussion includes an interesting way to use At the moment, it appears that the uutil @Arcterus , @sylvestre , opinion? |
Interesting development for this issue: GNU went ahead and implemented Here is the description from the docs:
Source: https://www.gnu.org/software/coreutils/manual/html_node/General-output-formatting.html |
Closing in favour of #2929. |
Unix allows newlines in filenames. A -0 (zero) option which would print the 'ls' results with NUL terminators instead of newlines
See: Why you shouldn't parse the output of ls @@https://archive.is/55aBh
And discussion: https://news.ycombinator.com/item?id=29747034
The text was updated successfully, but these errors were encountered: