|
Maybe because the basic syntax is quite similar (except the parentheses magic), and many command has bash-alias? So it was powershell looking as bash?
|
|
|
|
|
If the syntax was similar I'd have had no problem learning Powershell. Bash and Powershell syntax are quite different.
Real programmers use butterflies
|
|
|
|
|
As a REPL, I dislike its verbosity but for writing scripts it's fantastic compared to bash, so much simpler.
Spacing around `=` is irrelevant instead of throwing weird errors.
The if statement behaves like a programming language and does not have weird stuff like [[ ]] that changes something..
I never understood bash as a language.
That being said, I miss quite some stuff from coreutils on windows.. and I just realized that Git installs them and just added `C:\Program Files\Git\usr\bin` to the path, so I don't actually miss them anymore
|
|
|
|
|
I feel the exact opposite of you. I cannot remember PS syntax. It confounds me. Bash is no trouble.
Real programmers use butterflies
|
|
|
|
|
honey the codewitch wrote: And speaking of "AI", why the heck does my camera still name photos like IMG_2021_5_18.jpg or whatever when it knows it's a cat?
To be honest, if your camera knows it's a cat, then it's confused already, and probably need AIchiatric help ...
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
you know what I meant!
Real programmers use butterflies
|
|
|
|
|
I did try to like PS but failed, I also use bash for my Linux scripts and whilst they can be challenging I much prefer them to PS.
"I didn't mention the bats - he'd see them soon enough" - Hunter S Thompson - RIP
|
|
|
|
|
I spent a few years managing Exchange (2012ish) and the GUI would produce, and show, the PS commands. Of course I memorized them all.
Your camera shows that for the same reason my VHS recorder still blinks 12:00.
If you can keep your head while those about you are losing theirs, perhaps you don't understand the situation.
|
|
|
|
|
Powershell isn't all that bad. At least it is readable by a semi decent normal non PS programmer. Bash. Oh heck if you don't have some actual working knowledge you have no idea what that means.
I don't like writing powershell sometimes. But It does seem to work. I hate the -gt -eq signs. What the heck happened to > and = instead.
But that is just me, and like all of us. I am weird.
To err is human to really elephant it up you need a computer
|
|
|
|
|
rnbergren wrote: hate the -gt -eq signs. What the heck happened to > and = instead
I think this was done deliberately so a PS script could be dropped directly into something like an XML block or HTML with no change.
|
|
|
|
|
probably. I still think it is stupid though.
|
|
|
|
|
Because > is used for I/O redirection. < > | are at least consistent across most script languages
|
|
|
|
|
Yeah, I like it. I'm an old timer - lots of bash. Once I finally got used to the idea that powershell wasn't bash I started to like it. (I made some hilarious mistakes on the way) Now sometimes in bash I find myself wishing for objects.
|
|
|
|
|
Personally, I love it.
- It doesn't need compiling so I can see where I am going wrong installing (and I go wrong a lot ).
- Modules are very similar to libraries that you would need to reference in your code in other languages, but work straight from the prompt once installed.
- Said modules also allow one-line commands to get the information you need from a variety of different sources/application without writing your own function.
Admittedly other scripting languages have a lot of these benefits, oh and I used to be a Windows Sysadmin so I am probably biased
|
|
|
|
|
I've grown to like PS. Passing data around in Bash is done purely with plain text strings, which to me means it's as brittle as it can get. PowerShell hangs on to actual objects with properties and methods, and can leverage many things from .NET, so I find working with it is somewhat similar to working with a debugger when I need to explore an object's properties and values as a process is running live. This is particularly valuable when I'm not familiar at all with some new object type.
When I want to automate something and building an EXE is overkill, PS is pretty much my go-to solution.
|
|
|
|
|
whilst a lot of powershell stuff is self explanatory I only really use it via copy and paste as I cannot stand all that typing
I have always thought that it was crying out to be implemented using a gui with autocomplete
|
|
|
|
|
PowerShell has had tab completion since at least version 2 (2009) which has got better over time. O.K. It's never been as good as Linux/Bash tab completion, but it is there
|
|
|
|
|
PowerShell ISE is the already present IDE for PS. That might help flatten the learning curve
|
|
|
|
|
I, and a couple of coworkers, installed and tried out the desktop Power Automate. We all came to the same conclusion.
That is quite a bit of hassle to do something that Office's build-in macro functions and rules already do better.
Money makes the world go round ... but documentation moves the money.
|
|
|
|
|
Can confirm he improves performance and reduces bugs by 25%. Best computer upgrade so far.
Real programmers use butterflies
modified 17-Jan-22 9:19am.
|
|
|
|
|
color matching, as well.
|
|
|
|
|
Cool
He looks to be standing... as your PC were an american indian and Bob the feather in the forehead
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
Who is bob? The one's in Tekken 7?
|
|
|
|
|
Bob is the site mascot. The little alien guy at the top of the page (and on the sticker on my PC) - his name is Bob.
This had a photo with it but it looks like it got moved from Insider Photos to the lounge and lost its pic.
Real programmers use butterflies
|
|
|
|
|
If you cross a snowman with a vampire, do you get frostbite?
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|