2

Is there an official (ie. technet or MSDN, not a blog) reference for PowerShell literal (or generally reserved) characters/symbols?

Characters I'm referring to include | (piping data), $ (variables), @() (arrays), @{} (hashtables), and ${} (I don't even know what this does)

2 Answers 2

6

I would start with PS C:\> Get-Help About_Reserved_Words and the continue reading the referenced help pages.

See Also:

  • about_Command_Syntax
  • about_Escape_Characters
  • about_Language_Keywords
  • about_Parsing
  • about_Quoting_Rules
  • about_Script_Blocks
  • about_Special_Characters

The built-in help with PowerShell using Get-Help is one of the hidden gems.

2
  • 1
    about_operators (specifically the "Special Operators" section) also covers a number of (but not all) the operators in question. May 4, 2012 at 4:43
  • I will have to take a look at that help page. Still ramping up on PS myself
    – tawman
    May 4, 2012 at 4:50
3

Windows PowerShell Language Specification Version 2.0 can be downloaded from here. Almost all the details are there.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.