Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions reference/5.1/Microsoft.PowerShell.Management/Test-Path.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,16 +179,17 @@ 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 ' '
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 ''
Expand Down
2 changes: 1 addition & 1 deletion reference/6/Microsoft.PowerShell.Management/Test-Path.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion reference/7/Microsoft.PowerShell.Management/Test-Path.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down