Extraneous parentheses cause errors to be reported on valid code #268
Labels
bug
Something isn't working
status:waiting-for-info
For issues that need additional information from the users
$rootString = if(($PSVersionTable).Platform -like "Unix"){"/"} else{"$env:SystemDrive*"}
The parentheses around $PSVersionTable above are unnecessary but are valid; this should possibly make a style suggestion to remove them
Working in PS 5.1 on Windows:
Ditto PS 7 on Linux:
Plugin:
The text was updated successfully, but these errors were encountered: