[arch-general] Opinions on PowerShell?

Jeroen Mathon jeroenmathonmac at gmail.com
Fri Aug 19 05:20:15 UTC 2016


To be honest.
I think that Bash is way more useful for sys admin work. Shipping
PowerShell to linux will be a total disaster.

On Fri, 19 Aug 2016, 07:17 Christian Hesse, <list at eworm.de> wrote:

> Hunter Connelly via arch-general <arch-general at archlinux.org> on Thu,
> 2016/08/18 21:28:
> > On Thu, Aug 18, 2016 at 09:00:33PM -0400, Eli Schwartz via arch-general
> > wrote:
> > > Why would anyone want to use an overly-verbose scripting language like
> > > PowerShell as an interactive shell, **unless it was their only
> option**?
> >
> > While I tend to prefer Unix-style shells, there are *some* things that
> > PowerShell does better.
> >
> > Here's an example I found on Reddit in the thread about this on /r/linux.
> > Both of the following commands find the size and name of the three
> largest
> > files in a directory.
> >
> > Bash:        ls -l | sed 's/ \+/,/g' | cut -d',' -f 5,9 | sort -g | tail
> -3
>
> ls -1 --sort=size | head -n3
>
> > PowerShell:  ls -file | sort -pr length | select length, name -l 3
> >
> > What seems to be the most noticable difference is that PowerShell, being
> an
> > object-oriented language, pipes objects instead of raw text. I think this
> > might make many things easier while writing scripts.
> --
> main(a){char*c=/*    Schoene Gruesse                         */"B?IJj;MEH"
> "CX:;",b;for(a/*    Best regards             my address:    */=0;b=c[a++];)
> putchar(b-1/(/*    Chris            cc -ox -xc - && ./x
> */b/42*2-3)*42);}
>


More information about the arch-general mailing list