What Are You Doing Right Now
-
I'm playing devil's advocate here because this PowerShell vs BASH thing isn't a solid apples to apples comparison. It just isn't, no matter how you swing it. What if I took a typical PowerShell and Windows example such as getting a list of AD users of a certain group, grabbing their email aliases (proxyaddress), and outputting it to a CSV...
That would look very different from BASH, and isn't typically a thing you would do with BASH. That isn't apples to apples.
-
@Obsolesce said in What Are You Doing Right Now:
It just isn't,
Except it is. In both cases, I want to use a simple shell to run a simple command. PS is slow at its core task and BASH is fast at its core task. Apples to apples.
-
@scottalanmiller said in What Are You Doing Right Now:
@Obsolesce said in What Are You Doing Right Now:
@EddieJennings said in What Are You Doing Right Now:
@Obsolesce said in What Are You Doing Right Now:
@EddieJennings said in What Are You Doing Right Now:
@Obsolesce said in What Are You Doing Right Now:
@scottalanmiller said in What Are You Doing Right Now:
@black3dynamite yeah, PowerShell is still stuck in like 1982 here.
No, I think all of you are stuck in 1982 while PowerShell has moved on...
Unless there's a bleeding-edge version of Powershell out now that has that cmdlet, it doesn't seem to be native for 5.1.
I know there's a module out there that does what your picture shows, but it would be nice if that was just baked-in.
No, nothing new or fancy... just plain old PS6:
That's promising then. Maybe in 5 years we'll have version 6 on everything where I work . It is telling that it took 6 versions to get that functionality.
PowerShell 7 is on its way with some sweet (and much needed) functionality.
that's cool
Not particularly. because they don't force it out to systems.
My fully updated Windows 10 systems still use PS 5.1
-
@Obsolesce said in What Are You Doing Right Now:
That would look very different from BASH, and isn't typically a thing you would do with BASH. That isn't apples to apples.
Sure, but no need to do that since we have apples to apples SHELL comparisons, not comparing tasks called by the shells.
-
@JaredBusch yeah, I looked it up and MS said it wasn't the update to 5.1 but was a separate product. Out and available, but not in the upgrade path.
-
@scottalanmiller said in What Are You Doing Right Now:
@Obsolesce said in What Are You Doing Right Now:
That would look very different from BASH, and isn't typically a thing you would do with BASH. That isn't apples to apples.
Sure, but no need to do that since we have apples to apples SHELL comparisons, not comparing tasks called by the shells.
I don't agree. They are two differen't tools built for different tasks.
-
@Obsolesce said in What Are You Doing Right Now:
I don't agree. They are two differen't tools built for different tasks.
That makes no sense. If that is true, then you are saying that PowerShell is a abject failure because the only reasonable task of assuming it was for system management is not what it is for. Why does it exist then if not to be the "bash" everyone has wanted for decades on Windows?
Of course they are apples to apples, they serve identical functions in every way.
-
@scottalanmiller said in What Are You Doing Right Now:
@JaredBusch yeah, I looked it up and MS said it wasn't the update to 5.1 but was a separate product. Out and available, but not in the upgrade path.
Fully updated Hyper-V Server 2012 R2
-
@Obsolesce said in What Are You Doing Right Now:
@scottalanmiller said in What Are You Doing Right Now:
@Obsolesce said in What Are You Doing Right Now:
That would look very different from BASH, and isn't typically a thing you would do with BASH. That isn't apples to apples.
Sure, but no need to do that since we have apples to apples SHELL comparisons, not comparing tasks called by the shells.
I don't agree. They are two differen't tools built for different tasks.
I know they CAN do many things that produce similar results and outputs, but they are different tools designed to deal with different things in different ways.
-
@JaredBusch and Fully updated Hyper-V Server 2016
-
@JaredBusch said in What Are You Doing Right Now:
@scottalanmiller said in What Are You Doing Right Now:
@JaredBusch yeah, I looked it up and MS said it wasn't the update to 5.1 but was a separate product. Out and available, but not in the upgrade path.
Fully updated Hyper-V Server 2012 R2
PS7 will be based on a newer .NET, and because of the different paths, it may not be so soon that PS7 ships with Windows, but it will.
It will be PowerShell 7. No powershell 7 and powershell 7 core. The "core" will only exist in technical specs.
-
@Obsolesce said in What Are You Doing Right Now:
@Obsolesce said in What Are You Doing Right Now:
@scottalanmiller said in What Are You Doing Right Now:
@Obsolesce said in What Are You Doing Right Now:
That would look very different from BASH, and isn't typically a thing you would do with BASH. That isn't apples to apples.
Sure, but no need to do that since we have apples to apples SHELL comparisons, not comparing tasks called by the shells.
I don't agree. They are two differen't tools built for different tasks.
I know they CAN do many things that produce similar results and outputs, but they are different tools designed to deal with different things in different ways.
That's just a misleading way to say that they have the same job and one is designed well and one is designed poorly. They are both for identical tasks. One just shines and one obviously pales. Yes, they DO things differently, but their ends are meant to be the same - systems management. That their means differ is the only reason that they are worth comparing. If their means didn't differ, they'd both be bash.
-
@scottalanmiller said in What Are You Doing Right Now:
@Obsolesce said in What Are You Doing Right Now:
I don't agree. They are two differen't tools built for different tasks.
That makes no sense. If that is true, then you are saying that PowerShell is a abject failure because the only reasonable task of assuming it was for system management is not what it is for. Why does it exist then if not to be the "bash" everyone has wanted for decades on Windows?
Of course they are apples to apples, they serve identical functions in every way.
How do you get a .NET object or create a Windows form with BASH? Different worlds.
-
-
@Obsolesce said in What Are You Doing Right Now:
How do you get a .NET object or create a Windows form with BASH? Different worlds.
Means. This is why this discussion isn't making sense. You are confusing what the goals of teh two products are with how they do them. You are showing that PowerShell is so bad that you are no longer thinking of it as a function tool, but rather are so caught up in the "means" that it uses that you are seeing the means themselves as an end.
If that is true, you've defined PowerShell has pointless and worthless. It exists only to exist and not to serve any function.
-
@Obsolesce said in What Are You Doing Right Now:
It will be PowerShell 7. No powershell 7 and powershell 7 core. The "core" will only exist in technical specs.
But if PS truly has no purpose for existing....
-
I contend that PS has a clear purpose, and is just not well made. That's a million times better than having no purpose at all.
-
@scottalanmiller said in What Are You Doing Right Now:
@Obsolesce said in What Are You Doing Right Now:
How do you get a .NET object or create a Windows form with BASH? Different worlds.
Means. This is why this discussion isn't making sense. You are confusing what the goals of teh two products are with how they do them. You are showing that PowerShell is so bad that you are no longer thinking of it as a function tool, but rather are so caught up in the "means" that it uses that you are seeing the means themselves as an end.
If that is true, you've defined PowerShell has pointless and worthless. It exists only to exist and not to serve any function.
PowerShell is a systems management tool, just like BASH is. But what BASH was designed to manage means the tool has to be designed differently than a tool that would be for managing something designed completely different.
Yes, you may want to get the uptime of a Windows and Linux system. But the underlying components of what holds that data together is different, meaning one tool needs to have a different design to deal with a different system.
-
Think of it this way...
"What is the function of Java?"... To create software.
"What is the function of C# .NET?"... To create software.
"What is the function of BASH?"... to administer operating systems.
"What is the function of PowerShell?"... to create objects makes no sense in any context. It can create objects, so can F#, VB or Python. But that's not a goal or a purpose. It's just an under the hood artefact of how it is attempting to accomplish its job. -
@Obsolesce said in What Are You Doing Right Now:
PowerShell is a systems management tool, just like BASH is.
Right, so at the goal level, they share a function. That they approach it differently is fine. That one approaches it in a way that makes it fast, flexible, powerful, and simple and the other in a way that makes it convoluted, slow, and less flexible determines the quality of them.