Treat -Target as literal in New-Item by GameMicrowave · Pull Request #25186 · PowerShell/PowerShell

added 4 commits

March 16, 2025 21:48
Fixed char '`' can not escape
Fixed wildcard conversion of hard links
Fix wildcard conversion of hard links

iSazonov

@GameMicrowave

@GameMicrowave

@GameMicrowave

@GameMicrowave

replace literal char with field

@GameMicrowave

@GameMicrowave

@GameMicrowave GameMicrowave changed the title Fix New-Item file link creation failure and WildcardPattern.Escape result issue. Fix New-Item file link creation failure

Mar 25, 2025

@GameMicrowave

Add Test of file link creation

iSazonov

make the `-target` treat the path as a literal
make the `-target` treat the path as a literal

@GameMicrowave

@GameMicrowave

@GameMicrowave

@GameMicrowave

@GameMicrowave

@GameMicrowave

@GameMicrowave

@GameMicrowave

iSazonov

@GameMicrowave

@GameMicrowave

iSazonov

if file name contains wildcard character,the new-item should succeed on creation file link

@GameMicrowave

@GameMicrowave

@GameMicrowave

@GameMicrowave

@GameMicrowave

iSazonov

@iSazonov iSazonov changed the title Fix New-Item file link creation failure Treat -Target as literal in New-Item

May 12, 2025

SIRMARGIN pushed a commit to SIRMARGIN/PowerShell that referenced this pull request

Dec 12, 2025

@GameMicrowave @SIRMARGIN