You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
*-Item should handle files with wildcard characters #2799
Describe "Rename-Item" {
It "Rename-Item should work with files which have special characters" {
$file=new-item-itemtype file "${TESTDRIVE}/file[txt].txt"test-path-literal $file.fullname| Should be $trueRename-Item-literal $file.fullname"${TESTDRIVE}/file.txt.txt"test-path-literal $file.fullname| Should be $falsetest-path-literal "${TESTDRIVE}/file.txt.txt"| should be $true
}
}
Expected behavior
this test should pass (and it does on Windows)
Actual behavior
Rename-Item can't seem to find the file
Describing Rename-Item
[-] Rename-Item should work with files which have special characters 1.41s
An object at the specified path /tmp/bc945451-748f-471e-8dab-f2d09a1b2221/file[txt].txt does not exist.
at line: 5 in /home/james/tmp/rename.item.tests.ps1
Tests completed in 1.41s
Passed: 0 Failed: 1 Skipped: 0 Pending: 0
changed the title [-]rename-item should handle files with wildcard characters[/-][+]Rename-Item should handle files with wildcard characters[/+]on Mar 20, 2017
changed the title [-]Rename-Item should handle files with wildcard characters[/-][+]*-Item should handle files with wildcard characters[/+]on Apr 26, 2017
Activity
[-]rename-item should handle files with wildcard characters[/-][+]Rename-Item should handle files with wildcard characters[/+][-]Rename-Item should handle files with wildcard characters[/-][+]*-Item should handle files with wildcard characters[/+]Fix Rename-Item to allow Unix globbing patterns in paths (#2799) (#3661)
Fix Rename-Item to allow Unix globbing patterns in paths (PowerShell#…