Skip to main content

powershell_rewrite

Function powershell_rewrite 

Source
pub fn powershell_rewrite(command: &str, escaped_label: &str) -> String
Expand description

Build the PowerShell form. Native commands set $LASTEXITCODE; cmdlets set only $?, so fall back to that. The $(...) subexpression keeps the trailing __ out of the variable name.