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
copy-item does not respect -ErrorAction SilentlyContinue if file is in use #2474
Breaking-Changebreaking change that may affect usersCommittee-ReviewedPS-Committee has reviewed this and made a decisionIssue-Discussionthe issue may not have a clear classification yet. The issue may generate an RFC or may be reclassifResolution-FixedThe issue is fixed.WG-Cmdletsgeneral cmdlet issues
PS C:\Users\ststair> copy c:\windows\system32\cmd.exe
PS C:\Users\ststair> start .\cmd
PS C:\Users\ststair> copy c:\windows\system32\cmd.exe-erroraction SilentlyContinue
copy : The process cannot access the file 'C:\Users\ststair\cmd.exe' because it is being used by another process.
At line:1 char:1+ copy c:\windows\system32\cmd.exe-erroraction SilentlyContinue
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Copy-Item], IOException
+ FullyQualifiedErrorId : System.IO.IOException,Microsoft.PowerShell.Commands.CopyItemCommand
Oh, yes, it wasted my time as a user (I should have been clearer). I spent time trying everything out I could think of, assuming I was doing something wrong. I think most users are in the same boat.
John (@JVimes) thanks for the clarification. Going to get committee review since this is a breaking change making the currently terminating error into a non-terminating one
Thank you so much Steve. Inconsistent or unpredictable behavior is frustrating, and does bad things for the product reputation. I appreciate the effort.
@PowerShell/powershell-committee reviewed this and agree this should be a non-terminating error. We also ask that other *-Item cmdlets be reviewed to see if they have similar issue and all should be consistent.
Steve Lee (@SteveL-MSFT) it seems this issue is falling through the cracks. Any chance this annoying defect could be addressed in version 7, when everybody expects a breaking change?
Breaking-Changebreaking change that may affect usersCommittee-ReviewedPS-Committee has reviewed this and made a decisionIssue-Discussionthe issue may not have a clear classification yet. The issue may generate an RFC or may be reclassifResolution-FixedThe issue is fixed.WG-Cmdletsgeneral cmdlet issues
Activity
JVimes commentedon May 1, 2018
This bug is a time waster.
SteveL-MSFT commentedon May 2, 2018
John (@JVimes) just to be clear, it's a
time wasterin that because the bug exists it wastes your time or that it's a waste of time to fix?JVimes commentedon May 2, 2018
Oh, yes, it wasted my time as a user (I should have been clearer). I spent time trying everything out I could think of, assuming I was doing something wrong. I think most users are in the same boat.
SteveL-MSFT commentedon May 2, 2018
John (@JVimes) thanks for the clarification. Going to get committee review since this is a breaking change making the currently terminating error into a non-terminating one
JVimes commentedon May 2, 2018
Thank you so much Steve. Inconsistent or unpredictable behavior is frustrating, and does bad things for the product reputation. I appreciate the effort.
SteveL-MSFT commentedon May 16, 2018
@PowerShell/powershell-committee reviewed this and agree this should be a non-terminating error. We also ask that other
*-Itemcmdlets be reviewed to see if they have similar issue and all should be consistent.mi-hol commentedon Oct 30, 2019
Steve Lee (@SteveL-MSFT) it seems this issue is falling through the cracks. Any chance this annoying defect could be addressed in version 7, when everybody expects a breaking change?