diff --git a/src/init/starship.ps1 b/src/init/starship.ps1 index e1001680..bd688bad 100644 --- a/src/init/starship.ps1 +++ b/src/init/starship.ps1 @@ -43,8 +43,8 @@ function global:prompt { # Build an arguments string which follows the C++ command-line argument quoting rules # See: https://docs.microsoft.com/en-us/previous-versions//17w5ykft(v=vs.85)?redirectedfrom=MSDN $escaped = $Arguments | ForEach-Object { - $s = $_ -Replace '(\\+)"','$1$1"'; # Escape backslash chains immediately preceeding quote marks. - $s = $s -Replace '(\\+)$','$1$1'; # Escape backslash chains immediately preceeding the end of the string. + $s = $_ -Replace '(\\+)"','$1$1"'; # Escape backslash chains immediately preceding quote marks. + $s = $s -Replace '(\\+)$','$1$1'; # Escape backslash chains immediately preceding the end of the string. $s = $s -Replace '"','\"'; # Escape quote marks. "`"$s`"" # Quote the argument. }