by Kichererbsen · 4y ago · 0 comments
Some of the things are not... ideal. And there's a bunch of legacy stuff in modern powershell that we could do without, but a REPL scripting language with pipe semantics is really useful on a day-to-day basis.
I'm not sure C# would work as a shell language at all.
"It isn't what I'm used to, therefore bad, now let me figure out why." After that the length of commands is an easy target, in particular if you don't know enough about it to criticize it for anything substantive.
2) You just keep hitting tab until you get the one you want. This is the tab completion behavior of the Windows command line since it added tab completion.
C) Did I mention it's configurable? https://stackoverflow.com/questions/8264655/how-to-make-powe...
https://github.com/lukeschlather/dotfiles/blob/master/src/Wi...
That said, tab completion works, and I used PowerShell on macOS for a long time with no complaints.
Having Invoke-WebRequest originally use the IE engine for parsing by default was also a terrible idea, but at least they reversed that one.
for scripting I'd personally use neither.
Even without the hyperbole you have a comically exaggerated idea of how long it takes to write quick one-liners in PowerShell. For me personally, it helps a lot that I don't have to look up cryptic three-letter command names, obtuse switches, or the precise sed incantation to glue things together.
- They have a list of standard verbs: https://docs.microsoft.com/en-us/powershell/scripting/develo...
- Every command is verb-noun. So get-[whatever], remove-[whatever], set-[whatever] etc.
Therefore, you can guess get-process would be a command as is stop-process or start-process.
The main reason for this though, is that I can use some familiar Linux commands and I don't need to google how to list files in the current dir (PS and bash both have ls, among others)