Lemmy.one
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Gingernate@programming.dev to Unixporn@lemmy.ml · 2 years ago

Im going to get banned for this

programming.dev

message-square
116
fedilink
557

Im going to get banned for this

programming.dev

Gingernate@programming.dev to Unixporn@lemmy.ml · 2 years ago
message-square
116
fedilink
  • PowerCrazy@lemmy.ml
    link
    fedilink
    arrow-up
    20
    ·
    2 years ago

    Isn’t Powershell a POSIX compliant shell now? I know that isn’t “gnu/linux” but it certainly allows a lot of familiarity between the environments.

    • Mountaineer@aussie.zone
      link
      fedilink
      English
      arrow-up
      17
      ·
      2 years ago

      I don’t think it’s strictly compliant, although they claim to have based it’s syntax on Korn shell, which is the strictest definition of POSIX shells.

      You can do pretty much everything in powershell that you can do in something like bash BUT, it will be done slightly differently, so trying to make a script cross compatible is pointless (you might as well just write it natively in powershell etc).

      Powershell isn’t inherently bad, unlike bash for instance which just allows piping out text output, Powershell can pass around true .net objects.
      But if what you’re looking for is cross OS compatability, you’re pushing shit uphill.

      99.9% of the time, I open powershell and just ssh into a “real” linux box.

      • mvirts@lemmy.world
        link
        fedilink
        arrow-up
        8
        ·
        edit-2
        2 years ago

        Lol except they aliased wget and curl but dont parse the standard options 😡

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

          That’s borderline criminal. Nothing more to add

      • PuppyOSAndCoffee@lemmy.ml
        link
        fedilink
        arrow-up
        6
        ·
        edit-2
        2 years ago

        deleted by creator

        • 𝓢𝓮𝓮𝓙𝓪𝔂𝓔𝓶𝓶@lemmy.procrastinati.org
          link
          fedilink
          arrow-up
          1
          ·
          2 years ago

          Nuh uh btw

          • PuppyOSAndCoffee@lemmy.ml
            link
            fedilink
            arrow-up
            2
            ·
            edit-2
            2 years ago

            deleted by creator

            • 𝓢𝓮𝓮𝓙𝓪𝔂𝓔𝓶𝓶@lemmy.procrastinati.org
              link
              fedilink
              arrow-up
              1
              ·
              2 years ago

              Do your complaint is that the default security policy, that is easily changed with one command, is conservatively set?

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

      How can it be? It’s oo. Not saying you’re wrong. Honestly curious

      • CameronDev@programming.dev
        link
        fedilink
        arrow-up
        2
        ·
        2 years ago

        https://en.m.wikipedia.org/wiki/Microsoft_POSIX_subsystem

        Since 1993.

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

          Thanks, this explains:

          The Windows NT POSIX subsystem did not provide the interactive user environment parts

          So the interactive part, the shell itself, is not compliant. That is why I was confused

          • PowerCrazy@lemmy.ml
            link
            fedilink
            arrow-up
            4
            ·
            edit-2
            2 years ago

            I am not a greybeard expert with deep bash history, but I though the posix compliant aspect of PowerShell was a very recent, though apparently not perfect, achievement even if “technically” NT was POSIX compliant by some specific definition in 1993.

            • Zeth0s@lemmy.world
              link
              fedilink
              arrow-up
              3
              ·
              edit-2
              2 years ago

              As far as I understand, these are posix requirements https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18

              Powershell is not compliant with that document even now in the interactive part. Wsl2 is, as one can istall a standard Linux shell

        • PuppyOSAndCoffee@lemmy.ml
          link
          fedilink
          arrow-up
          4
          ·
          edit-2
          2 years ago

          deleted by creator

Unixporn@lemmy.ml

unixporn@lemmy.ml

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !unixporn@lemmy.ml

Unixporn

Submit screenshots of all your *NIX desktops, themes, and nifty configurations, or submit anything else that will make themers happy. Maybe a server running on an Amiga, or a Thinkpad signed by Bjarne Stroustrup? Show the world how pretty your computer can be!

Rules

  1. Post On-Topic
  2. No Defaults
  3. Busy Screenshots
  4. Use High-Quality Images
  5. Include a Details Comment
  6. No NSFW
  7. No Racism or use of racist terms
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 155 users / day
  • 264 users / week
  • 494 users / month
  • 1.6K users / 6 months
  • 148 local subscribers
  • 16.6K subscribers
  • 738 Posts
  • 5.9K Comments
  • Modlog
  • mods:
  • Dessalines@lemmy.ml
  • Stardust-kyun@lemmy.ml
  • jackmarxist [any]@hexbear.net
  • BE: 0.19.7
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org