Lazy Diary @ Hatena Blog

PowerShell / Java / miscellaneous things about software development, Tips & Gochas. CC BY-SA 4.0/Apache License 2.0

powershell -Version is unsupported in Linux environment


In Windows environment, you can use -Version option to get Powershell pretend to be an older version.


In Linux environment, -Version option is unsupported.


manpage of powershell(1) doesn’t have any content about -Version option, so it seems by design. (I think they thought that it is not critical for the environment that “the older version” did not exist.)