From 6cf095b4919974b50aef3178a69fe684a95484b5 Mon Sep 17 00:00:00 2001 From: Sean Wheeler Date: Mon, 11 Nov 2019 09:10:39 -0800 Subject: [PATCH] Fixes #5078 - update example 8 --- reference/5.1/Microsoft.PowerShell.Management/Test-Path.md | 7 ++++--- reference/6/Microsoft.PowerShell.Management/Test-Path.md | 2 +- reference/7/Microsoft.PowerShell.Management/Test-Path.md | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/reference/5.1/Microsoft.PowerShell.Management/Test-Path.md b/reference/5.1/Microsoft.PowerShell.Management/Test-Path.md index 3e894bd6f106..c4098216b351 100644 --- a/reference/5.1/Microsoft.PowerShell.Management/Test-Path.md +++ b/reference/5.1/Microsoft.PowerShell.Management/Test-Path.md @@ -179,8 +179,9 @@ At line:1 char:11 ### Example 8: Test a path with whitespace as the value -When a whitespace is or empty string in provided for the the `-Path` parameter, it returns false. -The following example show whitespace and empty string. +When a whitespace string is provided for the the `-Path` parameter, it returns **True**. When an +empty string is provided, `Test-Path` returns an error. The following example shows whitespace and +empty string. ```powershell Test-Path ' ' @@ -188,7 +189,7 @@ Test-Path '' ``` ```Output -False +True Test-Path : Cannot bind argument to parameter 'Path' because it is an empty string. At line:1 char:11 + Test-Path '' diff --git a/reference/6/Microsoft.PowerShell.Management/Test-Path.md b/reference/6/Microsoft.PowerShell.Management/Test-Path.md index 668e20f15002..a00df1637d4c 100644 --- a/reference/6/Microsoft.PowerShell.Management/Test-Path.md +++ b/reference/6/Microsoft.PowerShell.Management/Test-Path.md @@ -179,7 +179,7 @@ At line:1 char:11 ### Example 8: Test a path with whitespace as the value -When a whitespace is or empty string in provided for the the `-Path` parameter, it returns false. +When a whitespace or empty string is provided for the the `-Path` parameter, it returns **False**. The following example show whitespace and empty string. ```powershell diff --git a/reference/7/Microsoft.PowerShell.Management/Test-Path.md b/reference/7/Microsoft.PowerShell.Management/Test-Path.md index 0f9b0599f375..8eb6157e11e4 100644 --- a/reference/7/Microsoft.PowerShell.Management/Test-Path.md +++ b/reference/7/Microsoft.PowerShell.Management/Test-Path.md @@ -179,7 +179,7 @@ At line:1 char:11 ### Example 8: Test a path with whitespace as the value -When a whitespace is or empty string in provided for the the `-Path` parameter, it returns false. +When a whitespace or empty string is provided for the the `-Path` parameter, it returns **False**. The following example show whitespace and empty string. ```powershell