News for hackers. Stuff that matters.
Re:PowerShell is open sourced and is available on Linux by dangerlibrary on Thursday August 18, 2016 @12:33PM (#12313966)
Okay, I've imagined it. It does seem terrible.

Fortunately, that's not a world any of us live in.

Re:PowerShell is open sourced and is available on Linux by PeCaN on Thursday August 18, 2016 @12:40PM (#12314035)
Er, it's a world all of us live in. Say, for example, ‘ps’ or ‘ls -1l’.

Then you end up using awk, which is rather like a half-assed version of powershell to work around shortcomings with the unix everything-is-a-string design.

Re:PowerShell is open sourced and is available on Linux by qwertyuiop924 on Thursday August 18, 2016 @04:29PM (#12316098)
AWK isn't a workaround. It's a tool for processing tabular data, in a textual format. The fact that it can solve so many problems is actually a strength of the EIAS design.
Re:PowerShell is open sourced and is available on Linux by dangerlibrary on Thursday August 18, 2016 @02:54PM (#12315316)
Parent comment was talking about parsing the raw output from a database in stdout. That's what I was responding to, and I'm not wrong.
Re:PowerShell is open sourced and is available on Linux by emodendroket on Thursday August 18, 2016 @12:37PM (#12314001)
OK, but now imagine it's not a database, because there are programs that do act this way.
Re:PowerShell is open sourced and is available on Linux by qwertyuiop924 on Thursday August 18, 2016 @04:31PM (#12316112)
And those programs usually emit proper CSV. You could use regex to match on what you want, but AWK was literally built for this. It's fantastic, it works great, and if you don't use that tool that was built to solve your problem, that's your own lookout.
Re:PowerShell is open sourced and is available on Linux by emodendroket on Monday August 22, 2016 @09:45AM (#12336266)
I don't think awk is actually capable of parsing CSVs in all cases.
Re:PowerShell is open sourced and is available on Linux by qwertyuiop924 on Monday August 22, 2016 @01:07PM (#12337740)
It doesn't parse escapes, IIRC, but those are rarely emitted.