Or any other alternate shells that aren’t bash?

  • ziviz@lemmy.sdf.org
    link
    fedilink
    English
    arrow-up
    5
    ·
    6 days ago

    I use powershell for some scripting. I’ve been using .net/powershell forever and I know it better than python. If bash can’t handle it in a few lines, and I don’t have to use python, I’ll go powershell.

  • beeng@discuss.tchncs.de
    link
    fedilink
    arrow-up
    8
    ·
    7 days ago

    At work we use it sometimes on Linux because we maintain a script that needs to work on multiple platforms, ps1 did that in this usecase better.

    Came down to ps1 on Linux was better and more predictable than bash on windows.

    Sadly.

    • Papamousse@beehaw.org
      link
      fedilink
      arrow-up
      2
      ·
      7 days ago

      Same, only time we used it is when we needed a script that was running in Windows and Linux, easier to maintain one script that 2 in 2 languages

  • the_weez@midwest.social
    link
    fedilink
    arrow-up
    6
    ·
    6 days ago

    Only when I’m doing MS shit for work. Otherwise I find it kind of a pain. I get that some of it’s ideas are nice, but functionally it doesn’t actually do anything for me on unixy systems that bash doesn’t so I don’t. I’m not going to install it on all my servers so using it for scripting doesn’t make sense and I do more Linux admin than MS.

    • LeFantome@programming.dev
      link
      fedilink
      arrow-up
      4
      ·
      6 days ago

      If you are using FreeBSD, you are probably using the Almquist Shell.

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

      BSD has not used Bourne since the 90’s. Bash is of course the “Bourne Again Shell”.

      For Linux fans, “dash” is the (Debian Almquist Shell). It is the Linux version of the BSD shell. Dash is the default /usr/bin/sh in Debian and Ubuntu I think. So, pretty close to the same shell as FreeBSD.

  • golden_zealot@lemmy.ml
    link
    fedilink
    English
    arrow-up
    3
    ·
    edit-2
    6 days ago

    I’ve used powershell in previous jobs and if you learn it really well I cannot deny it is super powerful.

    For a college project, a friend of mine somehow made a hexadecimal file dumper with it, with formatting and everything (think like what you would see in wireshark) in one, reasonably long, line of powershell.

    However I’m just not a big fan of it personally for syntactical reasons (even with the syntax being super logical) and much prefer bash, or other unix-like native shells. I’ve been thinking about taking zsh for a spin recently to see what it’s like.

  • Heavybell@lemmy.world
    link
    fedilink
    English
    arrow-up
    5
    ·
    7 days ago

    I use it for some things. It’s good for file batch processing, for example. I could probably do those things in python but I use C# and powershell at work so I know .net better.

  • Sina@beehaw.org
    link
    fedilink
    arrow-up
    6
    arrow-down
    1
    ·
    7 days ago

    Basically no one is using powershell on Linux. zsh is popular and i’m using fish.

  • Mactan@lemmy.ml
    link
    fedilink
    arrow-up
    4
    ·
    7 days ago

    only for extraordinarily cursed situations where games need it in wine/proton

  • Tapionpoika@lemmy.ml
    link
    fedilink
    arrow-up
    5
    ·
    7 days ago

    It is not always Bash. Zsh comes as a default with some Arch based distros like Manjaro (xfce) and Garuda, plus Kali of course. But what is the point to use PowerShell in Linux? … Azure, Exchange or Windows servers or something else I don’t get?

  • stiltonfondu@sh.itjust.works
    link
    fedilink
    arrow-up
    4
    ·
    7 days ago

    I use PowerShell on Linux for work stuff. We maintain a set of Azure deployment scripts that were originally developed on PS 4 and 5 for Classic Azure. They’ve been migrated to AzureRM and now PS Core and Az. The scripts are now fully cross-platform.

    We even use some PS remoting over SSH for remotely deploying stuff on Linux VMs where we run some bash commands for configuration.

    I started with bash scripting years ago and never really used PS for Windows or exchange server admin. Just in the last decade for Azure stuff.

    Sounds weird and horrible but it’s fine.

    Bash is still home