mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Correct case of $Matches special variable
This commit is contained in:
@@ -50,9 +50,9 @@ Describe 'Native UNIX globbing tests' -tags "CI" {
|
||||
}
|
||||
# Test globbing with absolute paths - it shouldn't turn absolute paths into relative paths (#7089)
|
||||
It 'Should not normalize absolute paths' {
|
||||
$matches = /bin/echo /etc/*
|
||||
$Matches = /bin/echo /etc/*
|
||||
# Matched path should start with '/etc/' not '../..'
|
||||
$matches.substring(0,5) | Should -Be '/etc/'
|
||||
$Matches.substring(0,5) | Should -Be '/etc/'
|
||||
}
|
||||
It 'Globbing should not happen with quoted expressions' {
|
||||
$v = "$TESTDRIVE/abc*"
|
||||
|
||||
Reference in New Issue
Block a user