Douglas Milewski (dacuteturtle) wrote,
Douglas Milewski

Bash vs Powershell

I'm looking to get PowerShell running on my Ubuntu box simply because I'm lazy and want to use a scripting language that I already know. Family distracted me, so I never did get back to that project, but I did run into people who compared Bash vs PowerShell for some reason that I can't fathom.

Aside from the fact that Bash and PowerShell are both scripting languages, they are like lions and tigers. They were created for different environments. You can find bash on most every *nix installation, while you can find PowerShell on modern Windows. Behind those shells are two different operating systems, or ecosystems, if you will. Each shell is designed for the needs of its own operating system.

Each shell also has its inherent way of doing things. If you don't know bash very well, you will do things awkardly (no pun intended), but you will eventually learn simpler and more compact ways of doing those same tasks. The same is true of PowerShell. Practice leads to better code.

From my experience, PowerShell does some lovely things. I chose PowerShell because I managed many Windows machines, some of which I do not control. PowerShell was my least-common-denominator. (Yes, I know that makes me not-real, and so be it.) For me, PowerShell was the most appropriate tool for the job. If I had the same number of Linux boxes, I would have gone with Bash or Perl. Even if PowerShell were a measurably worse language by an order of magnitude, I would still have chosen it over Bash. And I'm not bashing bash (that pun was intended). 

  • Moving to DreamWidth

    For those heading to DreamWidth, I've created an account. I'm dmilewski.

  • Prostitution as a Means of Family Planning

    Does prostitution constitute a method of family planning? If a man doesn't want more children, then instead of having sex with his wife, he has sex…

  • The Swordbearer (1982)

    The Swordbearer (1982) by Glen Cook is the dark fantasy version of a YA novel. If you know Glen's writing style, you'll recognize the disaster about…

  • Post a new comment


    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded