Skip to content

Native globbing doesn't respect bypassing via the escape character (backtick) in unquoted arguments #15959

@mklement0

Description

@mklement0

Prerequisites

Steps to reproduce

When calling external programs on Unix-like platforms, native globbing can be bypassed on demand with single- or double-quoting an argument; e.g., /bin/echo '*'

The same should work with selectively escaping globbing metacharacters with ` in unquoted arguments, but currently doesn't.

# On Unix
/bin/echo `*

Expected behavior

*

Actual behavior

The names of all files and directories are output, because globbing was unexpectedly still applied.

Error details

No response

Environment data

PowerShell Core 7.2.0-preview.8 on Unix-like platforms.

Visuals

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-BugIssue has been identified as a bug in the productOS-LinuxOS-macOSResolution-DuplicateThe issue is a duplicate.WG-Engine-Providersbuilt-in PowerShell providers such as FileSystem, Certificates, Registry, etc.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions