Skip to content

Add --no-glob option for each command accepts glob patterns by default #10364

@EmilyGraceSeville7cf

Description

@EmilyGraceSeville7cf

Related problem

Commands like mv interpret passed strings as glob patterns out of the box, and there is no way to explicitly disable this behavior AFAIK. Now it's problematic to perform some mv operation on a file containing characters can be interpreted as glob like square brackets.

Describe the solution you'd like

Introduce --no-glob option for all commands accept glob patterns by default. Short option name should be resolved case-by-case, but -n can be preferred by default.

Describe alternatives you've considered

No response

Additional context and details

Issue is created out of this topic.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A:globBehavior around file-system globbing with regular commands or `glob`. See also A:quoting/expansioncategory:enhancementNew feature or requeststatus:needs-designthis feature requires design

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions