News for hackers. Stuff that matters.
Re:eBPF on Windows by agumonkey on Monday May 10, 2021 @04:17PM (#27110384)
> Powershell is apparently pretty modern and well designed, but it's quite confusing if you're used to Unix.

bash is pretty confusing eve if you're used to unix

-- Greg's

Re:eBPF on Windows by majkinetor on Monday May 10, 2021 @04:25PM (#27110473)
Bash is simply outdated. It grown organically and thats what you got. Now you have zillion scripts and situation is even worst then with cobol.

PowerShell was made by Unix people after 2+ decades of bash experience. It solved hundreds of things.

Yet people complain it didn't solve few or it takes a bit more to load (no, verbosity = RTFM). You can't ever please I guess.

Re:eBPF on Windows by lunfard00 on Monday May 10, 2021 @07:02PM (#27111949)
Writing powershell scripts on vscode with the ps plugin is quite pleasant. Would recommend everyone to try it.
Re:eBPF on Windows by agumonkey on Monday May 10, 2021 @04:32PM (#27110562)
were powershell designers from the unix world ? I didn't know that

I don't mind bash warts, history is what it is, I don't sell powershell .. but someone saying powershell is confusing has serious jaws. powershell is really nice and only if you fancy sed/grep everything then you'll consider bash* superior

Re:eBPF on Windows by majkinetor on Monday May 10, 2021 @04:40PM (#27110644)
> Sure, although, you know, my team – we all have deep UNIX backgrounds, before getting into NT, I was a UNIX development manager at Digital [Equipment Corporation], … worked on Ultrix, System 5.

https://www.networkworld.com/article/3110744/linuxcon-qa-wit...

Re:eBPF on Windows by agumonkey on Monday May 10, 2021 @05:57PM (#27111360)
oh wow, I had no idea

thanks for the link

Re:eBPF on Windows by Agingcoder on Monday May 10, 2021 @05:14PM (#27110970)
I don't think I want to compare them - I dislike them both! One is too basic and cryptic, the other one is overly complex for a shell, and in the end, I want to use neither.

I'm not sure what the ideal shell would look like though. Maybe an actual (simple and expressive) programming language with a way to 'lift' statements ?

Re:eBPF on Windows by agumonkey on Monday May 10, 2021 @05:58PM (#27111375)
oh my bad then, and the quest for an ideal shell / text user interface is a nice one. between lispy repls, to notebooks .. I guess there's a better solution that is both concise and fun yet not brittle.
Re:eBPF on Windows by rasputnik6502 on Monday May 10, 2021 @07:01PM (#27111939)
The situation gets worse every year with multitude new commanline utilities and scripts being created as part of new frameworks, languages and tools. And then everything gets mixed together to form some unstable, ever changing, inconsistent programming language.
Re:eBPF on Windows by majkinetor on Monday May 10, 2021 @04:36PM (#27110603)
sed/grep/awk have nothing to do with bash tho and you can run them equally easy on Windows (cinst sed grep awk) if you like outdated reg ex.
Re:eBPF on Windows by agumonkey on Monday May 10, 2021 @05:56PM (#27111352)
yes they're not bash but they're an integral part of bash scripts pipe processing
Re:eBPF on Windows by majkinetor on Monday May 10, 2021 @06:10PM (#27111501)
They are "integral" only because shell is lacking those functions.

On some places tools are not there (docker image for example).

Some people complain about size of the dotNet runtime, but if you install all those tools bash "needs" for comfy usage, you can equally easy install dotNet.

Re:eBPF on Windows by agumonkey on Monday May 10, 2021 @06:17PM (#27111572)
I don't think that's right. unix users care a lot about streams of bytes as exchange format, powershell tried the object stream way, to avoid parsing manually stuff every time and also share some common bits (table formatting for free, map/filter for free too)

unix give you partial stuff for that like comm but it's just brittle