diff --git a/test/powershell/Language/Scripting/NativeExecution/NativeWindowsTildeExpansion.Tests.ps1 b/test/powershell/Language/Scripting/NativeExecution/NativeWindowsTildeExpansion.Tests.ps1 index 8278499cad17d..4c57669f41a84 100644 --- a/test/powershell/Language/Scripting/NativeExecution/NativeWindowsTildeExpansion.Tests.ps1 +++ b/test/powershell/Language/Scripting/NativeExecution/NativeWindowsTildeExpansion.Tests.ps1 @@ -30,6 +30,6 @@ Describe 'Native Windows tilde expansion tests' -tags "CI" { cmd /c echo "~\foo" | Should -BeExactly '~\foo' } It '~ should be expanded with implicit quotes' { - cmd /c echo ~\a` b | Should -BeExactly "`"$($ExecutionContext.SessionState.Provider.Get("FileSystem").Home)\a `"" + cmd /c echo ~\a` b | Should -BeExactly "`"$($ExecutionContext.SessionState.Provider.Get("FileSystem").Home)\a `"b" } }