On March 4, the new version of PowerShell 7 was released.
PowerShell is a "cross-platform automation and configuration framework, optimized for structured data, REST API, and object models," which includes a command-line shell, an object-oriented language, and a set of tools for executing scripts and management modules.
Notable new features include:
- Parallel processing of objects in ForEach-Object
- New operators: ternary conditional operator ? :; control operators || and &&, similar to those in bash; conditional NULL operators ?? and ?=, which return the value on the right if the value on the left is NULL
- Enhanced error description presentation and the Get-Error cmdlet for calling detailed error descriptions
- Calling the Desired State Configuration (DSC) resources directly from PowerShell (in experimental stage)
- Improved backward compatibility with Windows PowerShell
The version is available for use on Linux distributions that support .NET Core 3.1, with community-provided packages for Arch and Kali Linux.
The Snap package on Ubuntu 16.04 causes a segmentation fault, therefore the DEB or tar.gz installation is recommended.
Source: linux.org.ru
