-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Closed
Labels
Resolution-No ActivityIssue has had no activity for 6 months or moreIssue has had no activity for 6 months or moreWG-Cmdlets-Managementcmdlets in the Microsoft.PowerShell.Management modulecmdlets in the Microsoft.PowerShell.Management module
Description
Steps to reproduce
Invoke-Item /tmpExpected behavior
Throw a PowerShell error (i.e. no default handler is available or similar).
The issue is not folder specific, i.e. it fails on any folder. It is tested on PS 6.1.0-preview.2
The issue seems to be related to #4252 and #4262, but this is more to address proper error handling than to actually implement the functionality.
Actual behavior
It throws different errors from the underlying system.
On Debian Stretch, it throws full 9 line xdg-open error stack.

On Debian subsystem on Windows 10, it throws 'No such file or directory' whereas folder exists. If a folder is really not existing, it throws 'Cannot find path'

Environment data
> $PSVersionTable
Metadata
Metadata
Assignees
Labels
Resolution-No ActivityIssue has had no activity for 6 months or moreIssue has had no activity for 6 months or moreWG-Cmdlets-Managementcmdlets in the Microsoft.PowerShell.Management modulecmdlets in the Microsoft.PowerShell.Management module