Skip to content

Commit 1328e24

Browse files
committed
Expand example
1 parent 6832d2a commit 1328e24

4 files changed

Lines changed: 48 additions & 36 deletions

File tree

reference/5.1/Microsoft.PowerShell.Core/About/about_Case-Sensitivity.md

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -65,19 +65,22 @@ following areas:
6565
case-insensitive, irrespective of the system.
6666

6767
```powershell
68-
[void] (New-Item -Path Temp:foo.txt -Force)
68+
PS /home/user01> New-Item -Path Temp:foo.txt -Force
6969
70-
(Get-Item -Path Temp:FOO.txt).Name
71-
# Get-Item: Cannot find path 'Temp:/FOO.txt' because it does not exist.
70+
Directory: /tmp
7271
73-
(Get-Item -Path Temp:F[O]*.txt).Name
74-
# foo.txt
72+
UnixMode User Group LastWriteTime Size Name
73+
-------- ---- ----- ------------- ---- ----
74+
-rw-r--r-- user01 user01 1/6/2026 10:53 0 foo.txt
7575
76-
(Get-Item -Path Env:hOME).Name
77-
# Get-Item: Cannot find path 'Env:/hOME' because it does not exist.
76+
PS /home/user01> (Get-Item -Path Temp:FOO.txt).Name
77+
Get-Item: Cannot find path 'Temp:/FOO.txt' because it does not exist.
7878
79-
(Get-Item -Path Env:hOM[E]).Name
80-
# HOME
79+
PS /home/user01> (Get-Item -Path Temp:F[O]*.txt).Name
80+
foo.txt
81+
82+
PS /home/user01> (Get-Item -Path Env:hOM[E]).Name
83+
HOME
8184
```
8285

8386
- Parameter set names are case-sensitive.

reference/7.4/Microsoft.PowerShell.Core/About/about_Case-Sensitivity.md

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -65,19 +65,22 @@ following areas:
6565
case-insensitive, irrespective of the system.
6666

6767
```powershell
68-
[void] (New-Item -Path Temp:foo.txt -Force)
68+
PS /home/user01> New-Item -Path Temp:foo.txt -Force
6969
70-
(Get-Item -Path Temp:FOO.txt).Name
71-
# Get-Item: Cannot find path 'Temp:/FOO.txt' because it does not exist.
70+
Directory: /tmp
7271
73-
(Get-Item -Path Temp:F[O]*.txt).Name
74-
# foo.txt
72+
UnixMode User Group LastWriteTime Size Name
73+
-------- ---- ----- ------------- ---- ----
74+
-rw-r--r-- user01 user01 1/6/2026 10:53 0 foo.txt
7575
76-
(Get-Item -Path Env:hOME).Name
77-
# Get-Item: Cannot find path 'Env:/hOME' because it does not exist.
76+
PS /home/user01> (Get-Item -Path Temp:FOO.txt).Name
77+
Get-Item: Cannot find path 'Temp:/FOO.txt' because it does not exist.
7878
79-
(Get-Item -Path Env:hOM[E]).Name
80-
# HOME
79+
PS /home/user01> (Get-Item -Path Temp:F[O]*.txt).Name
80+
foo.txt
81+
82+
PS /home/user01> (Get-Item -Path Env:hOM[E]).Name
83+
HOME
8184
```
8285

8386
- Parameter set names are case-sensitive.

reference/7.5/Microsoft.PowerShell.Core/About/about_Case-Sensitivity.md

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -65,19 +65,22 @@ following areas:
6565
case-insensitive, irrespective of the system.
6666

6767
```powershell
68-
[void] (New-Item -Path Temp:foo.txt -Force)
68+
PS /home/user01> New-Item -Path Temp:foo.txt -Force
6969
70-
(Get-Item -Path Temp:FOO.txt).Name
71-
# Get-Item: Cannot find path 'Temp:/FOO.txt' because it does not exist.
70+
Directory: /tmp
7271
73-
(Get-Item -Path Temp:F[O]*.txt).Name
74-
# foo.txt
72+
UnixMode User Group LastWriteTime Size Name
73+
-------- ---- ----- ------------- ---- ----
74+
-rw-r--r-- user01 user01 1/6/2026 10:53 0 foo.txt
7575
76-
(Get-Item -Path Env:hOME).Name
77-
# Get-Item: Cannot find path 'Env:/hOME' because it does not exist.
76+
PS /home/user01> (Get-Item -Path Temp:FOO.txt).Name
77+
Get-Item: Cannot find path 'Temp:/FOO.txt' because it does not exist.
7878
79-
(Get-Item -Path Env:hOM[E]).Name
80-
# HOME
79+
PS /home/user01> (Get-Item -Path Temp:F[O]*.txt).Name
80+
foo.txt
81+
82+
PS /home/user01> (Get-Item -Path Env:hOM[E]).Name
83+
HOME
8184
```
8285

8386
- Parameter set names are case-sensitive.

reference/7.6/Microsoft.PowerShell.Core/About/about_Case-Sensitivity.md

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -65,19 +65,22 @@ following areas:
6565
case-insensitive, irrespective of the system.
6666

6767
```powershell
68-
[void] (New-Item -Path Temp:foo.txt -Force)
68+
PS /home/user01> New-Item -Path Temp:foo.txt -Force
6969
70-
(Get-Item -Path Temp:FOO.txt).Name
71-
# Get-Item: Cannot find path 'Temp:/FOO.txt' because it does not exist.
70+
Directory: /tmp
7271
73-
(Get-Item -Path Temp:F[O]*.txt).Name
74-
# foo.txt
72+
UnixMode User Group LastWriteTime Size Name
73+
-------- ---- ----- ------------- ---- ----
74+
-rw-r--r-- user01 user01 1/6/2026 10:53 0 foo.txt
7575
76-
(Get-Item -Path Env:hOME).Name
77-
# Get-Item: Cannot find path 'Env:/hOME' because it does not exist.
76+
PS /home/user01> (Get-Item -Path Temp:FOO.txt).Name
77+
Get-Item: Cannot find path 'Temp:/FOO.txt' because it does not exist.
7878
79-
(Get-Item -Path Env:hOM[E]).Name
80-
# HOME
79+
PS /home/user01> (Get-Item -Path Temp:F[O]*.txt).Name
80+
foo.txt
81+
82+
PS /home/user01> (Get-Item -Path Env:hOM[E]).Name
83+
HOME
8184
```
8285

8386
- Parameter set names are case-sensitive.

0 commit comments

Comments
 (0)