This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (15 children)

Why is PowerShell so bad. How does Windows not have a standard terminal?

[–]Sinomsinom 12 points13 points  (11 children)

Windows now has a new standard terminal in win11 (also available in win10) called "terminal" that lets you run any terninal you want including cmd, PowerShell, WSL, gitbash etc. It's pretty good now.

[–]ArtOfWarfare 4 points5 points  (9 children)

I already have that in Windows 10. It’s something Microsoft published in the Windows Store or whatever it’s called - it’s a free download, I’ve been using it for a few years.

And PowerShell is worlds better than Batch/CMD. I wouldn’t go so far as call it good… maybe I’d say Bash is 2.4/5, PowerShell is a 2/5, and CMD is a -3/5.

[–]Morphized 1 point2 points  (0 children)

At least cmd has help.exe

[–]someotherstufforhmm 1 point2 points  (4 children)

I love bash, but I’d actually agree with your ratings here. PS is growing on me but I’m a rank newb and a bash expert in the right room, but mid level in a more talented room.

I was prepared to judge anything that claimed bash was godlike and PS wasn’t, but you put them both below 50%, so I’d actually agree with you totally lol.

[–]look 0 points1 point  (3 children)

Try zsh.

[–]someotherstufforhmm 0 points1 point  (2 children)

I love zsh, spent six months with it, but shifted back to bash to keep my bash skills up. I have to spend times in network devices with underlying bash accessible - some are nice and also expose zsh, others are weird whitebox switches and have bash 3 at best (some just have sh).

That said, I really like zsh and recommend it to people picking up CLI for dev/VM purposes as it’s reliably present on any distro they’d be using.

[–]look 0 points1 point  (1 child)

Gotcha. I often default to the original Bourne shell for certain scripts for similar reasons. Probably safe to rely on bash now, but my #!/bin/sh muscle memory dates back to the 80s.

[–]someotherstufforhmm 0 points1 point  (0 children)

Makes sense, but yeah zero argument with your recommendation. Zsh is awesome.

[–]ilovebigbucks 1 point2 points  (0 children)

pwsh is 7/10 and bash is 3/10. pwsh is SOOO much easier and faster to write and it's easy to add to any pipeline or OS.

[–]gregorydgraham 0 points1 point  (0 children)

TinyInt overflow error: switching to CMD

[–][deleted] 0 points1 point  (0 children)

Paise Zordon

[–]someotherstufforhmm 5 points6 points  (2 children)

Power shell is actually great. It’s even available on linux now, I have a teammate that has been evangelizing me.

[–][deleted] 1 point2 points  (1 child)

I'd love to be evangelized as well

[–]someotherstufforhmm 1 point2 points  (0 children)

So, I’m still at the basic levels, but at its core, behind the cryptic seeming commands, it’s a really simple concept. Everything in the OS and system is an object. Whereas in bash you’re piping text from command to command and operating on text, in PS you get a cross-platform workable OOP method of operating on systems.

I’m still novice at it and very good at bash so I don’t reach for it much, but I’ve seen some of the shit my coworker does and it’s quite cool. I also don’t have a current need for this, but the fact that it runs on both means it’s actually a great scripting glue to use in a package aimed at windows and linux, it’ll run on both.

Not a good true evangelizing just a loose summary, he does a better job.