Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Invoke-Item /tmp fails on Debian with strange errors #6827

Copy link
Copy link
@iricigor

Description

@iricigor
Issue body actions

Steps to reproduce

Invoke-Item /tmp

Expected 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.
screenshot_1

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'
screenshot_2

Environment data

> $PSVersionTable
Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    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

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.