News for hackers. Stuff that matters.
Re:The Origin of the Shell by blackrock on Thursday November 26, 2020 @05:32PM (#25224021)
I wonder if programs on the shell should start emitting JSON objects now?

Often times, the text output, separated by a white space, seems too limiting. Where maybe parsing structured JSON objects might be easier to manipulate.

Re:The Origin of the Shell by SubjectToChange on Thursday November 26, 2020 @06:38PM (#25224347)
There are tools like jo[1] which will encode output of shell commands into json.

As for native shell support for structured data, Powershell is probably the best implementation. In Powershell objects can be piped to other commands and they can be serialized to json, xml, csv, and even html [2]

[1] https://github.com/jpmens/jo [2] https://docs.microsoft.com/en-us/powershell/module/microsoft...

Re:The Origin of the Shell by beny23 on Saturday November 28, 2020 @06:42AM (#25237008)
I’d be a bit sceptical about JSON everywhere as it would mean throwing out all the shell tools and everything having to parse JSON which seems overkill.