In the comments section of a recent post I found out that Windows PowerShell had been ported to Linux. Had no clue it was a thing.

Went looking and found this old article attempting to explain why they did it. Not remotely interested in giving up Bash for PowerShell, but I thought it was interesting enough to share. The article seems to be from 2016.

I have never been more tempted to check the NSFW box, but I’ll leave it open for now unless a mod complains. :-D

  • truthfultemporarily@feddit.org
    link
    fedilink
    arrow-up
    32
    arrow-down
    1
    ·
    6 天前

    Can someone explain to me why? The outputs are objects and that is cool for scripts, but the fact that every small thing is its own cmdlet is super annoying. I can do everything in Linux if I know 10 commands. In PS I would always have to look up everything.

    • bleistift2@sopuli.xyz
      link
      fedilink
      English
      arrow-up
      28
      ·
      6 天前

      the fact that every small thing is its own cmdlet is super annoying. I can do everything in Linux if I know 10 commands

      That sounds more like a clash of cultures than a real problem. In Linux you need to know 10 options and possibly subcommands for each command. Naturally the same concept has different flags, and the same flag has different meanings in different commands. Is that really better?

    • morbidcactus@lemmy.ca
      link
      fedilink
      arrow-up
      14
      ·
      edit-2
      6 天前

      If I recall the Verb-Noun idea is supposed to make it clear what is happening, take a look through stuff like the approved verbs for defining cmdlets. There’s aliases and stuff for sure for example I think ls is an aliases for Get-ChildItem in PowerShell.

      It’s supposed to make it so you don’t necessarily need to look things up, need to do something to an item? Well you can Copy, Remove, Rename, Move etc, and while yeah that’s a super basic example that you know the equivalent linux commands for, the concept is supposed to apply everywhere. Now, whether or not people follow the guidelines is probably another story.

      I don’t really hate shell scripting, feel like they all have their place, complex stuff though is nicer in straight PowerShell than bash IMO, but I’m fine using either.