News for hackers. Stuff that matters.
Re:jc: Converts the output of popular command-line tools to ... by hoherd on Friday December 08, 2023 @09:47AM (#38569673)
> In the same way programs are smart enough to know to render colored output or not, I'd love it if it could dump structured output (or not)

The even lower hanging fruit is to implement json output as a command line argument in all cli tools. I would love to see this done for the gnu core utils.

Re:jc: Converts the output of popular command-line tools to ... by bryanlarsen on Friday December 08, 2023 @10:09AM (#38569927)
It was a really pleasant surprise to find the "-j" option to do this for the "ip" command from the iproute2 project.
Re:jc: Converts the output of popular command-line tools to ... by mr_mitm on Friday December 08, 2023 @11:03AM (#38570547)
AFAIK the idea is that if you need that kind of interoperability in unix/gnu, you're supposed to write your tool in C and include some libraries. Clearly not realistic in many use cases.
Re:jc: Converts the output of popular command-line tools to ... by teddyh on Friday December 08, 2023 @10:03AM (#38569847)
At least “du”, “env”, and “printenv” in Coreutils all support the “--null” option to separate output into being NUL-separated instead of being text lines.