I feel like that’s the only thing people ever mention about PS 7.0 - is that really the only major change that has been made?
I’ve been using Runspaces for awhile, so it being added to a foreach loop doesn’t really make me gung-ho about it. Genuinely curious though to see from user’s perspectives what has changed!
It's not a huge jump of 6 -> 7, it's more like 6.3 but they want the major version to signal improved compatibility and a long-term-support release. At lot of the work has been improving the auto-loading and module compatibility with PSv5 things so that v7 is not such a breaking change from 5.1.
There are a few differences - some gated features behind experimental enable/disable flags, some operators && and || and & used like Bash does, ?. and ?[] operators to make working with / testing for $null values need less code, ternary operator for shorter if/else test ? code : code; suggesting closely named commands in the case of a command not found, reworking Test-Connection to be more like v5.1 with more useful output, more kinds of numeric literals like 0b0011 for binary number literals, cross-platform get/set-clipboard, add colours and things to Select-String output, add back some cmdlets from PSv5.1 which didn't make it into the new ones such as Get-Hotfix, powershell can now be a login shell on Linux/macOS, better breakpoint display when remoting and debugging, -split can take negative count numbers to split from the right, Export-Csv doesn't need -NoTypeInformation anymore, DSC MOF compilation on non-Windows and use of DSC resources without an LCM, and a bunch of general cmdlet tweaks to parameters and options for convenience and bugfixing.
28
u/DigitalWhitewater Mar 04 '20
Please inform a ignorant fool... what is the hype and highlights in PS v7.0.0? I’m honestly curious.