• rtxn@lemmy.world
    link
    fedilink
    English
    arrow-up
    28
    ·
    edit-2
    2 years ago

    You expected your content to be downloaded by curl

    It was me, Invoke-WebRequest!

    • themoonisacheese@sh.itjust.works
      link
      fedilink
      arrow-up
      24
      ·
      2 years ago

      If powershell wasn’t a Microsoft product I think it could easily outclass any shell currently available. The concept of command output typing is hand down one of the best features of any shell I’ve tried.

      • AnyOldName3@lemmy.world
        link
        fedilink
        arrow-up
        9
        ·
        2 years ago

        nushell is a thing, and basically has all the fun powershell features like a type system, but a more Unixy presentation. I’ve not used it, so don’t know if it’s actually any good, but it at least exists.

      • massive_bereavement@kbin.social
        link
        fedilink
        arrow-up
        6
        ·
        2 years ago

        Apples to oranges, powershell is windows exposing most of COM, WMI and .NET object models while improving on the previous options with CScript and VBscript, as those are older than .NET.

        Why are we comparing it with UNIX/Linux shells is beyond me.

        • Dafuqs@feddit.de
          link
          fedilink
          arrow-up
          2
          ·
          2 years ago

          You say that like it’s a bad thing. Having access to all those things by writing a few descriptive words and a great help system (looking at you, linux commands) is awesome.

      • voxel@sopuli.xyz
        link
        fedilink
        arrow-up
        5
        ·
        edit-2
        2 years ago

        How is it being a Microsoft product a bad thing? It’s fully open source and available on both Linux and Windows;
        also nushell

      • Yuumi@lemmy.ml
        link
        fedilink
        English
        arrow-up
        1
        ·
        2 years ago

        I’m confused by this command output typing you’re talking about, and I’m not sure if I found the correct thing. Are you talking about the Write-Host and Write-Output?

        • FooBarrington@lemmy.world
          link
          fedilink
          arrow-up
          4
          ·
          2 years ago

          I’d assume they mean that command return values can have types besides string. In classical shells, all data is stringy, so every command has to re-interpret everything. PowerShell can actually use data types.

        • lameJake@feddit.de
          link
          fedilink
          arrow-up
          1
          ·
          2 years ago

          As far as I understand it it’s like stdout and stderr but with some additional ones for debuging, logging, etc…

      • Trollception@lemmy.world
        link
        fedilink
        arrow-up
        2
        ·
        2 years ago

        It was my stepping stone from being an IT Support tech to a traditional Software Developer. Yes it’s not as easy to work with as a traditional language or as fast but it’s more flexible and often less verbose.

    • Synthead@lemmy.world
      link
      fedilink
      arrow-up
      4
      ·
      2 years ago

      Reminder that you can use any CLI interpreter as your shell. IPython, Pry, PHP, or whatever you want.

  • kopper [they/them]@lemmy.blahaj.zone
    link
    fedilink
    English
    arrow-up
    3
    ·
    2 years ago

    the only thing i know about powershell is that the linux binary is named pwsh which i learned the hard way after writing pow and then accidentally tab completing poweroff and shutting down my pc

    in fairness that might’ve been a sign