Prerequisites
Steps to reproduce
Junctions are an NTFS-specific feature, so trying to create them on other file-systems should result in an error.
# On a Unix-like platform / non-NTFS file-system
New-Item foo -Target $HOME -type Junction
Expected behavior
A (statement-terminating) error should occur.
Actual behavior
The item type is quietly accepted and no discernible action is performed: no output, no creation of an item named foo.
Note: If there's a preexisting foo item, a confusing error about (the expanded value of) $HOME/foo not being a directory is emitted.
Error details
Environment data
Visuals
No response
Prerequisites
Steps to reproduce
Junctions are an NTFS-specific feature, so trying to create them on other file-systems should result in an error.
Expected behavior
A (statement-terminating) error should occur.
Actual behavior
The item type is quietly accepted and no discernible action is performed: no output, no creation of an item named
foo.Note: If there's a preexisting
fooitem, a confusing error about (the expanded value of)$HOME/foonot being a directory is emitted.Error details
Environment data
Visuals
No response