News for hackers. Stuff that matters.
Re:A Requiem for a Dying Operating System (1994) by Arnavion on Friday September 04, 2020 @04:29PM (#24378589)
It's exactly the same for PS.

Just as you have to look at a text output of a unix command to figure out how to parse it and extract the subset of information you need from it, so do you have to look at the help metadata of a PS command to figure out how to extract the subset of information you need from its output.

The advantage of having objects instead of text is that if you thought you could parse the filename of grep matches by substring each line of `grep -H`'s output with `:`, you failed to account for filenames with colons. With PS's sls, its help metadata tells you it outputs `Microsoft.PowerShell.Commands.MatchInfo` objects, and the documentation for that type tells you it has a `Filename` property of type string.

One PS command is not "integrated" with another PS command; they're all integrated to .Net and a bunch of built-in PS types.

Re:A Requiem for a Dying Operating System (1994) by enriquto on Friday September 04, 2020 @04:46PM (#24378717)
Thanks for your answer, and I see where you are coming from. But your unix is not the same as my unix. For me, unix means programs that can be easily written using only the getchar and putchar functions. If you have "types" and whatnot, it's not unix.
Re:A Requiem for a Dying Operating System (1994) by jiggawatts on Saturday September 05, 2020 @09:26AM (#24383354)
It's not often you hear someone criticise a tool for not having enough unnecessary encoding and parsing steps involved.
Re:A Requiem for a Dying Operating System (1994) by enriquto on Saturday September 05, 2020 @12:02PM (#24384547)
Are you talking about people who promote JSON-RPC and whatnot? Sure, they are nuts, but what does it have to do with unix?