get-package error on ps 5.1
The behaviour of get-package cmdlet is different compared with 5.
get-package firefox works on 5 but no on 5.1
get-package firefox works on 5.1 but no on 5
Dan’s explanation below is correct. Just closing this one out.
This is due to a bug in v5 in how wildcards were handled which was fixed in v5.1. In PowerShell, if you don't specify wildcards, the name must match exactly to what was specified. In this case, the name of the package is 'xFirefox', so specifying just 'firefox' isn't an exact match and nothing is returned. Adding wildcards as in '*firefox*' invokes pattern matching which matches to 'xFirefox'.