Skip to main content

powershell_string

Function powershell_string 

Source
pub fn powershell_string(text: &str) -> String
Expand description

text as a PowerShell single-quoted string literal, which PowerShell reads back to exactly text, whatever its characters: for a folder or file in a command or script made for PowerShell. Nothing expands in single quotes, neither $ nor a backtick; only a single quote is special, written twice, and PowerShell takes the typographic ones (‘ ’ ‚ ‛) for one too.