Re: Opinions on PowerShell?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



> PowerShell, being an object-oriented language

When we need an object oriented language for administering (or scripting)
Arch , why not use Python (or one of our other OO options)? Is there any
strong use case for PowerShell on Arch given the tools that are already
available?

I only see one use case: Azure. MS need PowerShell to run on Linux on
Azure.

Therefore, I think you need to ask your question to the right audience --
people who use Azure. Some Arch people apparently do.

Archlinux on Azure | Inside Out
http://codito.in/archlinux-on-azure/

Arch Linux on Microsoft Azure
https://gist.github.com/z3ntu/e2750efd7f0b93ab3427f097de3fbefa

Archlinux on Azure | Inside Out
http://codito.in/archlinux-on-azure/


On Thu, Aug 18, 2016 at 9:28 PM, Hunter Connelly via arch-general <
arch-general@xxxxxxxxxxxxx> wrote:

> 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
> 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.
>



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux