We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f97d982 commit 1801a73Copy full SHA for 1801a73
1 file changed
src/WP_CLI/Shell/REPL.php
@@ -199,7 +199,7 @@ private static function create_prompt_cmd( $prompt, $history_path ) {
199
// PowerShell uses ` (backtick) for escaping but for strings single quotes are literal.
200
// If prompt contains single quotes, we double them in PowerShell.
201
$prompt_for_ps = str_replace( "'", "''", $prompt );
202
- $cmd = "\$line = Read-Host -Prompt '{$prompt_for_ps}'; Write-Output \$line;";
+ $cmd = "\$line = Read-Host -Prompt '{$prompt_for_ps}'; Write-Output \$line;";
203
return "powershell.exe -NoProfile -Command \"{$cmd}\"";
204
}
205
0 commit comments