Skip to content
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

JSON output #39

Open
grr opened this issue Nov 11, 2020 · 1 comment
Open

JSON output #39

grr opened this issue Nov 11, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@grr
Copy link

grr commented Nov 11, 2020

The --output-new format produces tab-separated values (TSV) with the first field being the filename. But tab and newline characters are valid within filenames, so this can result in invalid TSV output, which makes it unreliable to parse. Can you add an option to produce JSON?

Reference: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_170

@Moonbase59
Copy link
Owner

The wonders of Linux—with power comes responsibility. You are correct, of course, but I’ve only once in my life seen someone use newlines or tabs in a filename (and that was for a unit test).

I’ll consider your suggestion for a future release.

@Moonbase59 Moonbase59 added the enhancement New feature or request label Dec 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants