Allow creation of symlink to non-existent target#804
Conversation
This action is completely valid on both Windows and Linux (and OS X) operating systems; tested with `mklink` and `ln -s` respectively. Note that targets for hard links must exist, thus we check specifically for symbolic links. Both the path globber in session state and the `New-Item` implementation needed to be fixed to allow the target not to exist. Resolves #801. Also enable symbolic link tests on Windows.
2377094 to
3a43126
Compare
|
FYI @LeeHolmes |
|
Merging because I need this to make packages. |
|
Review status: 0 of 3 files reviewed at latest revision, 3 unresolved discussions. test/powershell/New-Item.Tests.ps1, line 119 [r1] (raw file):
test/powershell/New-Item.Tests.ps1, line 122 [r1] (raw file): test/powershell/New-Item.Tests.ps1, line 128 [r1] (raw file): Comments from Reviewable |
|
Review status: 0 of 3 files reviewed at latest revision, 3 unresolved discussions. test/powershell/New-Item.Tests.ps1, line 119 [r1] (raw file): test/powershell/New-Item.Tests.ps1, line 122 [r1] (raw file): test/powershell/New-Item.Tests.ps1, line 128 [r1] (raw file): Comments from Reviewable |
This action is completely valid on both Windows and Linux (and OS X)
operating systems; tested with
mklinkandln -srespectively.Note that targets for hard links must exist, thus we check specifically
for symbolic links.
Both the path globber in session state and the
New-Itemimplementationneeded to be fixed to allow the target not to exist.
Resolves #801.
This change is