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
This is similar to #804 where New-Item did not understand broken symlinks, since it was trying to follow it. The semantics on Linux of copy/move/new is to treat the symlink as a normal file, instead of following it, but PowerShell does not do this.
Steps to reproduce
Expected behavior
validfolderlinkcopyshould be a copy of the symlinkvalidfolderlinkvalidfilelinkcopyshould be a copy of the symlinkvalidfilelinkbrokenlinkcopyshould be a copy of the symlinkbrokenlinkActual behavior
validfolderlinkcopyis a copy of link's targetfoldervalidfilelinkcopyis a copy of the link's targetfilebrokenlinktobrokenlinkcopyEnvironment data
This is similar to #804 where
New-Itemdid not understand broken symlinks, since it was trying to follow it. The semantics on Linux of copy/move/new is to treat the symlink as a normal file, instead of following it, but PowerShell does not do this.