82
lxmcf
6y

Ok... But... Why?

Why would you use PowerShell instead of bash... Just... Why...

Comments
  • 27
    Doesn't surprise me. The first distro to use the Windows Subsystem for Linux was Ubuntu.

    I'm starting to suspect that Microsoft is looking at making serious moves towards a partnership/buyout of Canonical so they have a platform to take on the likes of Oracle and RedHat.
  • 8
    @starrynights89 you know what, wouldn't surprise me, it seems Microsoft are just trying to merge Ubuntu and windows essentially
  • 4
    @LastDigitOfPi you can do a tonne with it but just the way you actually do things with it is horrible, all the scripts end up looking like 'my first bash script'
  • 3
    in my eyes powershell is as powerfull as the bash with the standard gnu tools without the usefulness of function output like Function1 2| errorprog
  • 1
    @MrJimmy I mean they could just use the source code to their liking but there's the brand image that comes with owning it.
  • 3
    @starrynights89 @lxmcf you guys do know that ms is funding canonical, right?
  • 0
    @sharktits NO!

    SINCE FUCKING WHEN?!
  • 1
    @sharktits That's news to me.
  • 2
    You can do a lot on windows to be honest. Powershell is really powerful. Besides that I'm moving to .net and azure so for me it make sense. And I have a hard requirement to Adobe because I'm also a photographer🤷‍♂️
  • 3
    Powershell is ok
  • 10
    Ubuntu shell in Windows 10 then, powershell in Ubuntu now...

    That’s the Windows and Ubuntu right now
  • 2
    I need office365 cmdlets working under Linux. Last time I checked it was still no bueno. Any news for yhose cmdlets in PS under Ubuntu? I. am stuck running for that 😖
  • 0
    @dontbeevil well I cant fully switch to Ubuntu because I use Adobe. Like almost daily. And I don't like dualbooting my machines
  • 0
    @MrJimmy you know you are not forced to use the powershell, right?
  • 0
    To get output slower you can use powershell.

    On windows I executed same task on both poweshell and cmd.

    Result (exec. time) :

    cmd : 445ms
    Powershell : 1300ms

    And it is available to Ubuntu😂😂😂😂
  • 0
    One thing it opens up is for Windows SysOps guys to have a familiar CLI to operate Linux boxes with as well. Possibly letting you re-use a lot of your existing scripts.

    Also could open some Docker cross platform functionality.
  • 2
    I just realized this the other day. I still need to find out the need for it since most of what I need automated I can do so with a mixture of bash, Python and sometimes even php(rarely, but I have come across this)

    To be fair, powershell is exceedingly powerful and since most of my time is spent on windows it is what I use. Cmdlets are pretty cool and you do get an ide for it by default on every windows machine
  • 1
    Because a two liner in PS cost me 10 lines in Bash...
  • 2
    So next Windows won’t be a Windows?
  • 1
    Gross.
  • 1
    I love that you started this with "ok, but why?" I have a Post-It on my monitor that I point to when people ask for stupid shit you don't need, just like this.
  • 0
    Power Shell is so "POWERFUL" that it's so slow.
  • 0
    object pipeline is actually powerful and in windows you can connect to anything. However i've already ranted about powershell, but it's about classes & modules
Add Comment