DietPi-Software | PowerShell #5456
Replies: 6 comments 1 reply
-
Many thanks for your request. There are even amd64 Debian packages available, but to keep it simple I'd use the binary archives for all architectures. May I ask what the use case is to use the Windows shell on Linux? I mean all instructions to do anything on a Linux system assume that the current shell is bash or bourne shell, so I cannot currently think of another reason than that the syntax or features of PowerShell are superior for certain console tasks, at least based on personal preferences 🙂. Or do users get more used to it when using PowerShell within WSL? |
Beta Was this translation helpful? Give feedback.
-
Microsoft is working to make PowerShell platform agnostic. Even though Powershell is at home in the Windows world, it can make sense to run Powershell on Linux. Use Case:
|
Beta Was this translation helpful? Give feedback.
-
But how or why did you run DietPi backup scripts in PowerShell in the first place? Of course it's possible when it runs on Linux but if someone checks docs or forum or anything else for backup scripts, all will be bash/bourne shell scripts. Do you mean https://www.terraform.io/ (which works on regular Linux shells as well) or "terraforming" the usage of PowerShell on UNIX/Linux distros? 😃 But do not understand me wrong, it's great to have alternatives and help making cross-platforms work easier via cross-platform tools. I'm just interested what the initial intention in this case is where it would not come to my mind to write scripts for UNIX or GNU/Linux systems in PowerShell or batch, or scripts for Windows systems in UNIX shells. |
Beta Was this translation helpful? Give feedback.
-
I use powershell commonly for cross-platform CI/CD scripts where the same script can run across linux/mac/windows |
Beta Was this translation helpful? Give feedback.
-
I migrated this to discussions, so you can vote with the ⬆️ button at OP post. Many thanks for your input, cross platform scripts are indeed an argument. |
Beta Was this translation helpful? Give feedback.
-
can you verify if your script is still valid ? |
Beta Was this translation helpful? Give feedback.
-
What's about adding PowershellCore to the Dietpi-Software Catalog?
Voilá:
ADMIN EDIT: Vote for this implementation via ⬆️ button at this comment.
Beta Was this translation helpful? Give feedback.
All reactions